BizTalk Server General - publish the B2BOrchestration as a Web service

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > September 2005 > publish the B2BOrchestration as a Web service





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author publish the B2BOrchestration as a Web service
SalamElias

2005-09-22, 8:58 pm

Hi,
I am trying to follow module 2 in BTS tutorials provided by Microsoft. I
arrievd at page 51 and got stuck in theis operation. I managed to make the
webservice (by using the wizard).
But when opening the WS created by the wizard, I find 2 empty public methods.
When I try to follow the instructions to update localhost and localhost1 in
the supplier service, I get errors because ShippingAdvancedNotice type is not
found.

So If somebody has managed correclty to create the WS for the B2B
orchestration project and can provide me the code and references that shoud
be in the WS.

Best regards,

Salam
WenJun Zhang[msft]

2005-09-23, 7:49 am

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.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com