publish the B2BOrchestration as a Web service
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server General > publish the B2BOrchestration as a Web service




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    publish the B2BOrchestration as a Web service  
SalamElias


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-23-05 01:58 AM

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 no
t
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





[ Post a follow-up to this message ]



    RE: publish the B2BOrchestration as a Web service  
WenJun Zhang[msft]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:57 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register