Alex,
Just curious, but are you coding all of
this by hand? Not sure if you’re aware
of our products, but you can download Cape Studio and Cape Connect and see how easy it is to rapidly deploy Web Services (www.capeclear.com).
Feel free to bounce any questions off me…
Cheers,
-Dave
-----Original Message-----
From: Alex Harvey
[mailto:[EMAIL PROTECTED]]
Sent: 28 December 2001 11:54
To: [EMAIL PROTECTED]
Subject: calling .Net service from
Java client
I'm having a problem
receiving parameters in my .Net service when called from Java. My webservice is
invoked but the string parameters are all NULL and integer values are 0. I'm
sure it has something to do with my encoding, but what? I've included my wsdl.
What should my encodingStyleUri be set to for the SOAP call?
<?xml
version="1.0" encoding="utf-8"?>
<definitions xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:s0="http://tempuri.org/"
targetNamespace="http://tempuri.org/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<types>
<s:schema attributeFormDefault="qualified"
elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
<s:element name="addCustomer">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1"
name="customerID" type="s:int" />
<s:element minOccurs="1" maxOccurs="1"
name="firstName" nillable="true" type="s:string"
/>
<s:element minOccurs="1" maxOccurs="1"
name="lastName" nillable="true" type="s:string" />
<s:element minOccurs="1" maxOccurs="1"
name="address" nillable="true" type="s:string"
/>
! &n bsp;
<s:element minOccurs="1" maxOccurs="1"
name="city" nillable="true" type="s:string" />
<s:element minOccurs="1" maxOccurs="1"
name="state" nillable="true" type="s:string"
/>
<s:element minOccurs="1" maxOccurs="1"
name="zip" nillable="true" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="addCustomerResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1"
name="addCustomerResult" nillable="true"
type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="getCustomers">
<s:complexType />
</s:element>
<s:element
name="getCustomersResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1"
name="getCustomersResult" nillable="true" type="s0:ArrayOfAnyType"
/>
</s:sequence>
</s:complexType>
</s:element>
! ; & nbsp; <s:complexType
name="ArrayOfAnyType">
<s:sequence>
<s:element
minOccurs="0" maxOccurs="unbounded" name="Object"
nillable="true" />
</s:sequence>
</s:complexType>
<s:element name="string"
nillable="true" type="s:string" />
<s:element name="ArrayList"
nillable="true" type="s0:ArrayOfAnyType" />
</s:schema>
</types>
<message name="addCustomerSoapIn">
<part name="parameters"
element="s0:addCustomer" />
</message>
<message name="addCustomerSoapOut">
<part name="parameters"
element="s0:addCustomerResponse" />
</message>
<message name="getCustomersSoapIn">
<part name="parameters" element="s0:getCustomers"
/>
</message>
<message name="getCustomersSoapOut">
<part name="parameters"
element="s0:getCustomersResponse" />
</message>
<message name="addCustomerHttpGetIn">
<part name="customerID"
type="s:string" />
<part name="firstName"
type="s:string" />
<part name="lastName" type="s:string"
/>
<part name="address" type="s:string"
/>
<part name="city" type="s:string"
/>
<part name="state" type="s:string"
/>
<part name="zip" type="s:string"
/>
</message>
<message name="addCustomerHttpGetOut">
<part name="Body" element="s0:string"
/>
</message>
! <mes sage name="getCustomersHttpGetIn" />
<message name="getCustomersHttpGetOut">
<part name="Body"
element="s0:ArrayList" />
</message>
<message name="addCustomerHttpPostIn">
<part name="customerID"
type="s:string" />
<part name="firstName"
type="s:string" />
<part name="lastName" type="s:string"
/>
<part name="address" type="s:string"
/>
<part name="city" type="s:string"
/>
<part name="state" type="s:string"
/>
<part name="zip" type="s:string"
/>
</message>
<message name="addCustomerHttpPostOut">
<part name="Body" element="s0:string"
/>
</message>
<message name="getCustomersHttpPostIn" />
<message name="getCustomersHttpPostOut">
<part name="Body"
element="s0:ArrayList" />
</message>
<portType name="TravelAgentSoap">
<operation name="addCustomer">
<input
message="s0:addCustomerSoapIn" />
<output
message="s0:addCustomerSoapOut" />
</operation>
<operation name="getCustomers">
<input
message="s0:getCustomersSoapIn" />
<output
message="s0:getCustomersSoapOut" />
</operation>
</portType>
<portType name="TravelAgentHttpGet">
<operation name="addCustomer">
<input message="s0:addCustomerHttpGetIn"
/>
<output
message="s0:addCustomerHttpGetOut" />
</opera! tion>
<operation name="getCustomers">
<input
message="s0:getCustomersHttpGetIn" />
<output
message="s0:getCustomersHttpGetOut" />
</operation>
</portType>
<portType name="TravelAgentHttpPost">
<operation name="addCustomer">
<input
message="s0:addCustomerHttpPostIn" />
<output
message="s0:addCustomerHttpPostOut" />
</operation>
<operation name="getCustomers">
<input
message="s0:getCustomersHttpPostIn" />
<output
message="s0:getCustomersHttpPostOut" />
</operation>
</portType>
<binding name="TravelAgentSoap"
type="s0:TravelAgentSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document" />
<operation name="addCustomer">
<soap:operation soapAction="http://tempuri.org/addCustomer"
style="document" />
<input>
<soap:body
use="literal" />
</input>
<output>
<soap:body
use="literal" />
</output>
</operation>
<operation name="getCustomers">
<soap:operation soapAction="http://tempuri.org/getCustomers"
style="document" />
&n! bsp;&nbs p; <input>
<soap:body
use="literal" />
</input>
<output>
<soap:body
use="literal" />
</output>
</operation>
</binding>
<binding name="TravelAgentHttpGet"
type="s0:TravelAgentHttpGet">
<http:binding verb="GET" />
<operation name="addCustomer">
<http:operation
location="/addCustomer" />
<input>
<http:urlEncoded />
</input>
<output>
<mime:mimeXml part="Body"
/>
</output>
</operation>
<operation name="getCustomers">
<http:operation
location="/getCustomers" />
<input>
<http:urlEncoded />
</input>
<output>
<mime:mimeXml
part="Body" />
</output>
</operation>
</binding>
<binding name="TravelAgentHttpPost"
type="s0:TravelAgentHttpPost">
<http:binding verb="POST" />
<operation name="addCustomer">
<http:operation
location="/addCustomer" />
<input>
<mime:content type="application/x-www!
-form-ur lencoded" />
</input>
<output>
<mime:mimeXml
part="Body" />
</output>
</operation>
<operation name="getCustomers">
<http:operation
location="/getCustomers" />
<input>
<mime:content
type="application/x-www-form-urlencoded" />
</input>
<output>
<mime:mimeXml
part="Body" />
</output>
</operation>
</binding>
<service name="TravelAgent">
<port name="TravelAgentSoap"
binding="s0:TravelAgentSoap">
<soap:address location="http://localhost/TitanService/TravelAgent.asmx"
/>
</port>
<port name="TravelAgentHttpGet"
binding="s0:TravelAgentHttpGet">
<http:address location="http://localhost/TitanService/TravelAgent.asmx"
/>
</port>
<port name="TravelAgentHttpPost"
binding="s0:TravelAgentHttpPost">
<http:address location="http://localhost/TitanService/TravelAgent.asmx"
/>
</port>
</service>
</definitions>
Chat with friends online,
try MSN Messenger: Click Here
|