BizTalk Server General - Calling WebService with no parameters

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > June 2005 > Calling WebService with no parameters





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 Calling WebService with no parameters
James White

2005-06-29, 5:51 pm

Hi!

I have a web service that takes no parameters and has a complex return type.
Originally I let ASMX build the WSDL and when I did so I only needed to add a
construction shape for the 'request' message with nothing inside (no
assignment). Because of that complex type (which I needed Biztalk to
associate with a schema) I had to hand code the WSDL and while the "in"
message type is just <complexType/> (same as the old WSDL) it now wants me to
assign something to that part of the request message. Of course, my attempts
to do so are meeting some resistance, so the question is this:

What is the best way to specify in WSDL, a message that has no parameters?
If <complexType/> is right, any idea why or what I need to assign to it?

Thanks!

James

PS - Here is the wsdl I'm using:

<wsdl:types>
<s:schema elementFormDefault="qualified"
targetNamespace="urn:JDC.Babylon.Services">

<s:element name="OpenAndGetInvoiceToEmail">
<s:complexType wsdl:required="false"/>
</s:element>

</s:schema>
</wsdl:types>

<wsdl:message name="openAndGetInvoiceToEmailIn">
<wsdl:part name="messagePart" element="tns:OpenAndGetInvoiceToEmail"/>
</wsdl:message>

<wsdl:message name="openAndGetInvoiceToEmailOut">
<wsdl:part name="messagePart" element="jbss:Results"/>
</wsdl:message>

<wsdl:portType name="OrdersServiceSoap">
<wsdl:operation name="OpenAndGetInvoiceToEmail">
<wsdl:input message="tns:openAndGetInvoiceToEmailIn"/>
<wsdl:output message="tns:openAndGetInvoiceToEmailOut"/>
</wsdl:operation>
</wsdl:portType>

<wsdl:binding name="OrdersServiceSoap" type="tns:OrdersServiceSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />

<wsdl:operation name="OpenAndGetInvoiceToEmail">
<soap:operation
soapAction="urn:JDC.Babylon.Services/OpenAndGetInvoiceToEmail"
style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>

<wsdl:operation name="CloseInvoiceToEmail">
<soap:operation soapAction="urn:JDC.Babylon.Services/CloseInvoiceToEmail"
style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
</wsdl:operation>
<wsdl:operation name="RequeueInvoicesToEmail">
<soap:operation
soapAction="urn:JDC.Babylon.Services/RequeueInvoicesToEmail" style="document"
/>
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
</wsdl:operation>
</wsdl:binding>
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com