09-23-05 12:49 PM
Hi Salam,
Below are the two web methods about receiving ASN and receiving
invoice. I highly suggest you rebuild your development environment to
fix the web service creation issue before walking through the course.
This will save your time on the troubleshooting I think.
//--------------------------------------------------------------------
----------
// <autogenerated>
// This code was generated by a tool.
// Runtime Version: 1.1.4322.2032
//
// Changes to this file may cause incorrect behavior and will be
lost if
// the code is regenerated.
// </autogenerated>
//--------------------------------------------------------------------
----------
// Generated by "Microsoft.BizTalk.WebServices, Version=3.0.1.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"
// Product: Microsoft?BizTalk?Server 2004 3.0.4902.0
// File: Microsoft.BizTalk.WebServices.dll 3.0.4902.0
//
namespace B2BOrchestrations
{
// service "B2BOrchestrations.B2BProcess" port "ReceiveASN_Port"
[System.Web.Services.WebServiceBindingAttribute(Name="B2BOrchestration
s_B2BProcess_ReceiveASN_Port",
Namespace="http://B2BOrchestrations_WebService.org")]
[System.Web.Services.WebServiceAttribute(Name="B2BOrchestrations_B2BPr
ocess_ReceiveASN_Port",
Namespace="http://B2BOrchestrations_WebService.org",
Description="BizTalk assembly \"B2BOrchestrations, Version=1.0.0.0,
Culture=neutral, PublicKeyT" +
"oken=8b7128506f9e9d78\" published web service.")]
public sealed class B2BOrchestrations_B2BProcess_ReceiveASN_
Port
: Microsoft.BizTalk.WebServices.ServerProxy.ServerProxy
{
// operation "Operation_1"
[System.Web.Services.WebMethodAttribute()]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://B2B
Orchestrations_WebService.org/ B2BOrchestrations_B2BProcess_ReceiveASN_
P" +
"ort/Operation_1", OneWay=true,
Use=System.Web.Services.Description.SoapBindingUse.Literal,
ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Defaul
t)]
public void
Operation_1([System.Xml.Serialization.XmlElementAttribute(Namespace="h
ttp://CommonDocTemplates.CommonAdvancedShipNotice",
ElementName="CommonAdvancedShipNotice")]
B2BOrchestrations.XsdTypes1.CommonAdvancedShipNotice part)
{
System.Collections.ArrayList inHeaders = null;
System.Collections.ArrayList inoutHeaders = null;
System.Collections.ArrayList inoutHeaderResponses = null;
System.Collections.ArrayList outHeaderResponses = null;
System.Web.Services.Protocols.SoapUnknownHeader[]
unknownHeaderResponses = null;
// Parameter information
object[] invokeParams = new object[] {
part};
Microsoft.BizTalk.WebServices.ServerProxy.ParamInfo[]
inParamInfos = new
Microsoft.BizTalk.WebServices.ServerProxy.ParamInfo[] {
new
Microsoft.BizTalk.WebServices.ServerProxy.ParamInfo(typeof(B2BOrchestr
ations.XsdTypes1.CommonAdvancedShipNotice), "part")};
Microsoft.BizTalk.WebServices.ServerProxy.ParamInfo[]
outParamInfos = null;
string bodyTypeAssemblyQualifiedName =
"B2BSchemas.AdvancedShipNotice, B2BSchemas, Version=1.0.0.0,
Culture=neutral, Publ" +
"icKeyToken=8b7128506f9e9d78";
// BizTalk invocation
this.Invoke("Operation_1", invokeParams, inParamInfos,
outParamInfos, 0, bodyTypeAssemblyQualifiedName, inHeaders,
inoutHeaders, out inoutHeaderResponses, out outHeaderResponses, null,
null, null, out unknownHeaderResponses, true, false);
}
}
}
//--------------------------------------------------------------------
----------
// <autogenerated>
// This code was generated by a tool.
// Runtime Version: 1.1.4322.2032
//
// Changes to this file may cause incorrect behavior and will be
lost if
// the code is regenerated.
// </autogenerated>
//--------------------------------------------------------------------
----------
// Generated by "Microsoft.BizTalk.WebServices, Version=3.0.1.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"
// Product: Microsoft?BizTalk?Server 2004 3.0.4902.0
// File: Microsoft.BizTalk.WebServices.dll 3.0.4902.0
//
namespace B2BOrchestrations
{
// service "B2BOrchestrations.B2BProcess" port
"ReceiveInvoice_Port"
[System.Web.Services.WebServiceBindingAttribute(Name="B2BOrchestration
s_B2BProcess_ReceiveInvoice_Port",
Namespace="http://B2BOrchestrations_WebService.org")]
[System.Web.Services.WebServiceAttribute(Name="B2BOrchestrations_B2BPr
ocess_ReceiveInvoice_Port",
Namespace="http://B2BOrchestrations_WebService.org",
Description="BizTalk assembly \"B2BOrchestrations, Version=1.0.0.0,
Culture=neutral, PublicKeyT" +
"oken=8b7128506f9e9d78\" published web service.")]
public sealed class
B2BOrchestrations_B2BProcess_ReceiveInvo
ice_Port :
Microsoft.BizTalk.WebServices.ServerProxy.ServerProxy
{
// operation "Operation_1"
[System.Web.Services.WebMethodAttribute()]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://B2B
Orchestrations_WebService.org/ B2BOrchestrations_B2BProcess_ReceiveInvo
i" +
"ce_Port/Operation_1", OneWay=true,
Use=System.Web.Services.Description.SoapBindingUse.Literal,
ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Defaul
t)]
public void
Operation_1([System.Xml.Serialization.XmlElementAttribute(Namespace="h
ttp://CommonDocTemplates.CommonInvoice",
ElementName="CommonInvoice")]
B2BOrchestrations.XsdTypes1.CommonInvoice part)
{
System.Collections.ArrayList inHeaders = null;
System.Collections.ArrayList inoutHeaders = null;
System.Collections.ArrayList inoutHeaderResponses = null;
System.Collections.ArrayList outHeaderResponses = null;
System.Web.Services.Protocols.SoapUnknownHeader[]
unknownHeaderResponses = null;
// Parameter information
object[] invokeParams = new object[] {
part};
Microsoft.BizTalk.WebServices.ServerProxy.ParamInfo[]
inParamInfos = new
Microsoft.BizTalk.WebServices.ServerProxy.ParamInfo[] {
new
Microsoft.BizTalk.WebServices.ServerProxy.ParamInfo(typeof(B2BOrchestr
ations.XsdTypes1.CommonInvoice), "part")};
Microsoft.BizTalk.WebServices.ServerProxy.ParamInfo[]
outParamInfos = null;
string bodyTypeAssemblyQualifiedName =
"B2BSchemas.CommonInvoice, B2BSchemas, Version=1.0.0.0,
Culture=neutral, PublicKey" +
"Token=8b7128506f9e9d78";
// BizTalk invocation
this.Invoke("Operation_1", invokeParams, inParamInfos,
outParamInfos, 0, bodyTypeAssemblyQualifiedName, inHeaders,
inoutHeaders, out inoutHeaderResponses, out outHeaderResponses, null,
null, null, out unknownHeaderResponses, true, false);
}
}
}
Best regards,
WenJun Zhang
Microsoft Online Partner Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
[ Post a follow-up to this message ]
|