473,695 Members | 2,227 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Calling Java WebService from .net Client

Hi!

I'm trying to call a Java WebService out of a .net Client. There are two
Methods, one Method requires one Parameter of type Parameter, the other
Method requires one Parameter of type Parameter[].
I can call the first Method without Problems, the Parameter can be
deserialized by the WebService.
But if I want to call the second Method and give it an Array of Parameters,
then the following exception is thrown by the WebService:
javax.xml.rpc.J AXRPCException: org.xml.sax.SAX Exception: No deserializer
defined for array type {http://beans.middlewar e.cat.company.d e}Parameter

I have appended the WSDL of the concerning WebService.
It is called using rpc-Style, see <soap:binding
transport="http ://schemas.xmlsoap .org/soap/http" style="rpc" />

Both Methods can be called out of a Java Client. So my assumption is a
Problem concerning interoperabilit y between .net and Java.

Does anyone have experience with Interoperabilit y between the two Systems?

Best Regards,
Christian
=== This is the WSDL-File of the Service ===

<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitio ns xmlns:http="htt p://schemas.xmlsoap .org/wsdl/http/"
xmlns:soap="htt p://schemas.xmlsoap .org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:tns="http ://beans.middlewar e.cat.company.d e"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="htt p://schemas.xmlsoap .org/wsdl/mime/"
targetNamespace ="http://beans.middlewar e.cat.compay.de "
xmlns:wsdl="htt p://schemas.xmlsoap .org/wsdl/">
<wsdl:types>
<s:schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace ="http://beans.middlewar e.cat.company.d e">
<s:import namespace="http ://schemas.xmlsoap .org/soap/encoding/" />
<s:complexTyp e name="ArrayOf_x sd_string">
<s:complexConte nt mixed="false">
<s:restrictio n base="soapenc:A rray">
<s:attribute wsdl:arrayType= "s:string[]" ref="soapenc:ar rayType" />
</s:restriction>
</s:complexConten t>
</s:complexType>
<s:complexTyp e name="CustmapDa ta">
<s:sequence>
<s:element name="ID" nillable="true" type="s:int" />
<s:element name="createFro m" nillable="true" type="s:int" />
<s:element name="createSta mp" nillable="true" type="s:dateTim e" />
<s:element name="primaryKe y" nillable="true" type="s:int" />
<s:element name="refId" nillable="true" type="s:string" />
<s:element name="refType" nillable="true" type="s:string" />
<s:element name="sectionId " nillable="true" type="s:int" />
</s:sequence>
</s:complexType>
<s:complexTyp e name="TicketDat a">
<s:sequence>
<s:element name="ID" nillable="true" type="s:int" />
<s:element name="createAt" nillable="true" type="s:dateTim e" />
<s:element name="createFro m" nillable="true" type="s:int" />
<s:element name="custmapId " nillable="true" type="s:int" />
<s:element name="escalatio nlevel" nillable="true" type="s:int" />
<s:element name="lastacces sAt" nillable="true" type="s:dateTim e" />
<s:element name="lastacces sFrom" nillable="true" type="s:int" />
<s:element name="ownernow" nillable="true" type="s:int" />
<s:element name="ownerteam " nillable="true" type="s:int" />
<s:element name="primaryKe y" nillable="true" type="s:int" />
<s:element name="remark" nillable="true" type="s:string" />
<s:element name="status" nillable="true" type="s:string" />
</s:sequence>
</s:complexType>
<s:complexTyp e name="ArrayOfTi cketData">
<s:complexConte nt mixed="false">
<s:restrictio n base="soapenc:A rray">
<s:attribute wsdl:arrayType= "tns:Ticket Data[]" ref="soapenc:ar rayType" />
</s:restriction>
</s:complexConten t>
</s:complexType>
<s:complexTyp e name="CustmapTr ansferObject">
<s:complexConte nt mixed="false">
<s:extension base="tns:Custm apData">
<s:sequence>
<s:element name="tickets" nillable="true" type="tns:Array OfTicketData" />
</s:sequence>
</s:extension>
</s:complexConten t>
</s:complexType>
<s:complexTyp e name="Parameter ">
<s:sequence>
<s:element name="name" nillable="true" type="s:string" />
<s:element name="parameter Value" nillable="true" type="s:anyType " />
</s:sequence>
</s:complexType>
<s:complexTyp e name="ArrayOf_x sd_anyType">
<s:complexConte nt mixed="false">
<s:restrictio n base="soapenc:A rray">
<s:attribute wsdl:arrayType= "s:anyType[]" ref="soapenc:ar rayType" />
</s:restriction>
</s:complexConten t>
</s:complexType>
<s:complexTyp e name="ArrayOfPa rameter">
<s:complexConte nt mixed="false">
<s:restrictio n base="soapenc:A rray">
<s:attribute wsdl:arrayType= "tns:Parame ter[]" ref="soapenc:ar rayType" />
</s:restriction>
</s:complexConten t>
</s:complexType>
<s:complexTyp e name="Parameter Array">
<s:sequence>
<s:element name="parameter Array" nillable="true" type="tns:Array OfParameter"
/>
</s:sequence>
</s:complexType>
</s:schema>
</wsdl:types>
<wsdl:message name="getExampl eHashResponse">
<wsdl:part name="getExampl eHashReturn" type="tns:Param eter" />
</wsdl:message>
<wsdl:message name="ainvokeTh irdPartyRequest ">
<wsdl:part name="targetUrl " type="s:string" />
<wsdl:part name="functionN ame" type="s:string" />
<wsdl:part name="parameter " type="s:anyType " />
</wsdl:message>
<wsdl:message name="testSoapC lientRequest" />
<wsdl:message name="getExampl eArrayRequest" />
<wsdl:message name="getCustma pByIdResponse">
<wsdl:part name="getCustma pByIdReturn" type="tns:Custm apTransferObjec t" />
</wsdl:message>
<wsdl:message name="getExampl eHashRequest" />
<wsdl:message name="getCustma pByIdRequest">
<wsdl:part name="custmapID " type="s:int" />
</wsdl:message>
<wsdl:message name="getTicket sForCustmapRequ est">
<wsdl:part name="custmapID " type="s:int" />
</wsdl:message>
<wsdl:message name="testSoapC lientResponse">
<wsdl:part name="testSoapC lientReturn" type="s:anyType " />
</wsdl:message>
<wsdl:message name="testStrin gArrayRequest">
<wsdl:part name="strArray" type="tns:Array Of_xsd_string" />
</wsdl:message>
<wsdl:message name="testStrin gArrayResponse" >
<wsdl:part name="testStrin gArrayReturn" type="s:string" />
</wsdl:message>
<wsdl:message name="getExampl eArrayResponse" >
<wsdl:part name="getExampl eArrayReturn" type="tns:Array Of_xsd_anyType" />
</wsdl:message>
<wsdl:message name="invokeThi rdPartyRequest" >
<wsdl:part name="targetUrl " type="s:string" />
<wsdl:part name="functionN ame" type="s:string" />
<wsdl:part name="systemNam e" type="s:string" />
<wsdl:part name="parameter " type="s:anyType " />
</wsdl:message>
<wsdl:message name="ainvokeTh irdPartyRespons e">
<wsdl:part name="ainvokeTh irdPartyReturn" type="s:anyType " />
</wsdl:message>
<wsdl:message name="invokeThi rdPartyResponse ">
<wsdl:part name="invokeThi rdPartyReturn" type="s:anyType " />
</wsdl:message>
<wsdl:message name="getTicket sForCustmapResp onse">
<wsdl:part name="getTicket sForCustmapRetu rn" type="tns:Array OfTicketData" />
</wsdl:message>
<wsdl:portTyp e name="RemoteSer vice">
<wsdl:operati on name="testSoapC lient">
<wsdl:input name="testSoapC lientRequest" message="tns:te stSoapClientReq uest"
/>
<wsdl:output name="testSoapC lientResponse"
message="tns:te stSoapClientRes ponse" />
</wsdl:operation>
<wsdl:operati on name="testStrin gArray" parameterOrder= "strArray">
<wsdl:input name="testStrin gArrayRequest"
message="tns:te stStringArrayRe quest" />
<wsdl:output name="testStrin gArrayResponse"
message="tns:te stStringArrayRe sponse" />
</wsdl:operation>
<wsdl:operati on name="ainvokeTh irdParty" parameterOrder= "targetUrl
functionName parameter">
<wsdl:input name="ainvokeTh irdPartyRequest "
message="tns:ai nvokeThirdParty Request" />
<wsdl:output name="ainvokeTh irdPartyRespons e"
message="tns:ai nvokeThirdParty Response" />
</wsdl:operation>
<wsdl:operati on name="invokeThi rdParty" parameterOrder= "targetUrl
functionName systemName parameter">
<wsdl:input name="invokeThi rdPartyRequest"
message="tns:in vokeThirdPartyR equest" />
<wsdl:output name="invokeThi rdPartyResponse "
message="tns:in vokeThirdPartyR esponse" />
</wsdl:operation>
<wsdl:operati on name="getCustma pById" parameterOrder= "custmapID" >
<wsdl:input name="getCustma pByIdRequest" message="tns:ge tCustmapByIdReq uest"
/>
<wsdl:output name="getCustma pByIdResponse"
message="tns:ge tCustmapByIdRes ponse" />
</wsdl:operation>
<wsdl:operati on name="getTicket sForCustmap" parameterOrder= "custmapID" >
<wsdl:input name="getTicket sForCustmapRequ est"
message="tns:ge tTicketsForCust mapRequest" />
<wsdl:output name="getTicket sForCustmapResp onse"
message="tns:ge tTicketsForCust mapResponse" />
</wsdl:operation>
<wsdl:operati on name="getExampl eHash">
<wsdl:input name="getExampl eHashRequest" message="tns:ge tExampleHashReq uest"
/>
<wsdl:output name="getExampl eHashResponse"
message="tns:ge tExampleHashRes ponse" />
</wsdl:operation>
<wsdl:operati on name="getExampl eArray">
<wsdl:input name="getExampl eArrayRequest"
message="tns:ge tExampleArrayRe quest" />
<wsdl:output name="getExampl eArrayResponse"
message="tns:ge tExampleArrayRe sponse" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="RemoteSer vicePortSoapBin ding" type="tns:Remot eService">
<soap:binding transport="http ://schemas.xmlsoap .org/soap/http" style="rpc"
/>
<wsdl:operati on name="testSoapC lient">
<soap:operati on soapAction="" />
<wsdl:input name="testSoapC lientRequest">
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:input>
<wsdl:output name="testSoapC lientResponse">
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:output>
</wsdl:operation>
<wsdl:operati on name="testStrin gArray">
<soap:operati on soapAction="" />
<wsdl:input name="testStrin gArrayRequest">
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:input>
<wsdl:output name="testStrin gArrayResponse" >
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:output>
</wsdl:operation>
<wsdl:operati on name="ainvokeTh irdParty">
<soap:operati on soapAction="" />
<wsdl:input name="ainvokeTh irdPartyRequest ">
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:input>
<wsdl:output name="ainvokeTh irdPartyRespons e">
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:output>
</wsdl:operation>
<wsdl:operati on name="invokeThi rdParty">
<soap:operati on soapAction="" />
<wsdl:input name="invokeThi rdPartyRequest" >
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:input>
<wsdl:output name="invokeThi rdPartyResponse ">
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:output>
</wsdl:operation>
<wsdl:operati on name="getCustma pById">
<soap:operati on soapAction="" />
<wsdl:input name="getCustma pByIdRequest">
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:input>
<wsdl:output name="getCustma pByIdResponse">
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:output>
</wsdl:operation>
<wsdl:operati on name="getTicket sForCustmap">
<soap:operati on soapAction="" />
<wsdl:input name="getTicket sForCustmapRequ est">
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:input>
<wsdl:output name="getTicket sForCustmapResp onse">
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:output>
</wsdl:operation>
<wsdl:operati on name="getExampl eHash">
<soap:operati on soapAction="" />
<wsdl:input name="getExampl eHashRequest">
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:input>
<wsdl:output name="getExampl eHashResponse">
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:output>
</wsdl:operation>
<wsdl:operati on name="getExampl eArray">
<soap:operati on soapAction="" />
<wsdl:input name="getExampl eArrayRequest">
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:input>
<wsdl:output name="getExampl eArrayResponse" >
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="RemoteSer vice">
<wsdl:port name="RemoteSer vicePort"
binding="tns:Re moteServicePort SoapBinding">
<soap:address location="http://xx-xx-xxx:8080//services/RemoteService" />
</wsdl:port>
</wsdl:service>
</wsdl:definition s>
Nov 21 '05 #1
7 4979
Hi Christian,

I have two thoughts. Looking quickly at this WSDL, have you tried passing
the type ArrayOfParamete r rather than a Parameter array?

Second, have you compared a wire trace of the SOAP packet to see the
difference between the two requests? I suspect that my first suggestion is
what the Java clients are passing. This isn't an array, but is a type unto
itself that happens to contain an array of other types.

I hope this helps

Dan Rogers
Microsoft Corporation
--------------------
From: "Christian Wilhelm" <ch********@big foot.de>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Subject: Calling Java WebService from .net Client
Date: Fri, 3 Dec 2004 13:34:30 +0100
Lines: 319
Message-ID: <31************ *@individual.ne t>
X-Trace: individual.net 6wC9gvSdWYN4ay4 f5RlHUwqEJQRU6B 04ItzMJk0KvjTHs ni4Y=
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Path:
cpmsftngxa10.ph x.gbl!TK2MSFTFE ED02.phx.gbl!TK 2MSFTNGP08.phx. gbl!newsfeed00. s
ul.t-online.de!t-online.de!news-lei1.dfn.de!new s-ber1.dfn.de!fu-berlin.de!un
i-berlin.de!indiv idual.net!not-for-mail
Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.webservices :7789
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Hi!

I'm trying to call a Java WebService out of a .net Client. There are two
Methods, one Method requires one Parameter of type Parameter, the other
Method requires one Parameter of type Parameter[].
I can call the first Method without Problems, the Parameter can be
deserialized by the WebService.
But if I want to call the second Method and give it an Array of Parameters,
then the following exception is thrown by the WebService:
javax.xml.rpc.J AXRPCException: org.xml.sax.SAX Exception: No deserializer
defined for array type {http://beans.middlewar e.cat.company.d e}Parameter

I have appended the WSDL of the concerning WebService.
It is called using rpc-Style, see <soap:binding
transport="http ://schemas.xmlsoap .org/soap/http" style="rpc" />

Both Methods can be called out of a Java Client. So my assumption is a
Problem concerning interoperabilit y between .net and Java.

Does anyone have experience with Interoperabilit y between the two Systems?

Best Regards,
Christian
=== This is the WSDL-File of the Service ===

<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitio ns xmlns:http="htt p://schemas.xmlsoap .org/wsdl/http/"
xmlns:soap="htt p://schemas.xmlsoap .org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:tns="http ://beans.middlewar e.cat.company.d e"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="htt p://schemas.xmlsoap .org/wsdl/mime/"
targetNamespace ="http://beans.middlewar e.cat.compay.de "
xmlns:wsdl="htt p://schemas.xmlsoap .org/wsdl/">
<wsdl:types>
<s:schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace ="http://beans.middlewar e.cat.company.d e">
<s:import namespace="http ://schemas.xmlsoap .org/soap/encoding/" />
<s:complexTyp e name="ArrayOf_x sd_string">
<s:complexConte nt mixed="false">
<s:restrictio n base="soapenc:A rray">
<s:attribute wsdl:arrayType= "s:string[]" ref="soapenc:ar rayType" />
</s:restriction>
</s:complexConten t>
</s:complexType>
<s:complexTyp e name="CustmapDa ta">
<s:sequence>
<s:element name="ID" nillable="true" type="s:int" />
<s:element name="createFro m" nillable="true" type="s:int" />
<s:element name="createSta mp" nillable="true" type="s:dateTim e" />
<s:element name="primaryKe y" nillable="true" type="s:int" />
<s:element name="refId" nillable="true" type="s:string" />
<s:element name="refType" nillable="true" type="s:string" />
<s:element name="sectionId " nillable="true" type="s:int" />
</s:sequence>
</s:complexType>
<s:complexTyp e name="TicketDat a">
<s:sequence>
<s:element name="ID" nillable="true" type="s:int" />
<s:element name="createAt" nillable="true" type="s:dateTim e" />
<s:element name="createFro m" nillable="true" type="s:int" />
<s:element name="custmapId " nillable="true" type="s:int" />
<s:element name="escalatio nlevel" nillable="true" type="s:int" />
<s:element name="lastacces sAt" nillable="true" type="s:dateTim e" />
<s:element name="lastacces sFrom" nillable="true" type="s:int" />
<s:element name="ownernow" nillable="true" type="s:int" />
<s:element name="ownerteam " nillable="true" type="s:int" />
<s:element name="primaryKe y" nillable="true" type="s:int" />
<s:element name="remark" nillable="true" type="s:string" />
<s:element name="status" nillable="true" type="s:string" />
</s:sequence>
</s:complexType>
<s:complexTyp e name="ArrayOfTi cketData">
<s:complexConte nt mixed="false">
<s:restrictio n base="soapenc:A rray">
<s:attribute wsdl:arrayType= "tns:Ticket Data[]" ref="soapenc:ar rayType" />
</s:restriction>
</s:complexConten t>
</s:complexType>
<s:complexTyp e name="CustmapTr ansferObject">
<s:complexConte nt mixed="false">
<s:extension base="tns:Custm apData">
<s:sequence>
<s:element name="tickets" nillable="true" type="tns:Array OfTicketData" />
</s:sequence>
</s:extension>
</s:complexConten t>
</s:complexType>
<s:complexTyp e name="Parameter ">
<s:sequence>
<s:element name="name" nillable="true" type="s:string" />
<s:element name="parameter Value" nillable="true" type="s:anyType " />
</s:sequence>
</s:complexType>
<s:complexTyp e name="ArrayOf_x sd_anyType">
<s:complexConte nt mixed="false">
<s:restrictio n base="soapenc:A rray">
<s:attribute wsdl:arrayType= "s:anyType[]" ref="soapenc:ar rayType" />
</s:restriction>
</s:complexConten t>
</s:complexType>
<s:complexTyp e name="ArrayOfPa rameter">
<s:complexConte nt mixed="false">
<s:restrictio n base="soapenc:A rray">
<s:attribute wsdl:arrayType= "tns:Parame ter[]" ref="soapenc:ar rayType" />
</s:restriction>
</s:complexConten t>
</s:complexType>
<s:complexTyp e name="Parameter Array">
<s:sequence>
<s:element name="parameter Array" nillable="true"
type="tns:Array OfParameter"
/>
</s:sequence>
</s:complexType>
</s:schema>
</wsdl:types>
<wsdl:message name="getExampl eHashResponse">
<wsdl:part name="getExampl eHashReturn" type="tns:Param eter" />
</wsdl:message>
<wsdl:message name="ainvokeTh irdPartyRequest ">
<wsdl:part name="targetUrl " type="s:string" />
<wsdl:part name="functionN ame" type="s:string" />
<wsdl:part name="parameter " type="s:anyType " />
</wsdl:message>
<wsdl:message name="testSoapC lientRequest" />
<wsdl:message name="getExampl eArrayRequest" />
<wsdl:message name="getCustma pByIdResponse">
<wsdl:part name="getCustma pByIdReturn" type="tns:Custm apTransferObjec t" />
</wsdl:message>
<wsdl:message name="getExampl eHashRequest" />
<wsdl:message name="getCustma pByIdRequest">
<wsdl:part name="custmapID " type="s:int" />
</wsdl:message>
<wsdl:message name="getTicket sForCustmapRequ est">
<wsdl:part name="custmapID " type="s:int" />
</wsdl:message>
<wsdl:message name="testSoapC lientResponse">
<wsdl:part name="testSoapC lientReturn" type="s:anyType " />
</wsdl:message>
<wsdl:message name="testStrin gArrayRequest">
<wsdl:part name="strArray" type="tns:Array Of_xsd_string" />
</wsdl:message>
<wsdl:message name="testStrin gArrayResponse" >
<wsdl:part name="testStrin gArrayReturn" type="s:string" />
</wsdl:message>
<wsdl:message name="getExampl eArrayResponse" >
<wsdl:part name="getExampl eArrayReturn" type="tns:Array Of_xsd_anyType" />
</wsdl:message>
<wsdl:message name="invokeThi rdPartyRequest" >
<wsdl:part name="targetUrl " type="s:string" />
<wsdl:part name="functionN ame" type="s:string" />
<wsdl:part name="systemNam e" type="s:string" />
<wsdl:part name="parameter " type="s:anyType " />
</wsdl:message>
<wsdl:message name="ainvokeTh irdPartyRespons e">
<wsdl:part name="ainvokeTh irdPartyReturn" type="s:anyType " />
</wsdl:message>
<wsdl:message name="invokeThi rdPartyResponse ">
<wsdl:part name="invokeThi rdPartyReturn" type="s:anyType " />
</wsdl:message>
<wsdl:message name="getTicket sForCustmapResp onse">
<wsdl:part name="getTicket sForCustmapRetu rn" type="tns:Array OfTicketData" />
</wsdl:message>
<wsdl:portTyp e name="RemoteSer vice">
<wsdl:operati on name="testSoapC lient">
<wsdl:input name="testSoapC lientRequest"
message="tns:te stSoapClientReq uest"
/>
<wsdl:output name="testSoapC lientResponse"
message="tns:te stSoapClientRes ponse" />
</wsdl:operation>
<wsdl:operati on name="testStrin gArray" parameterOrder= "strArray">
<wsdl:input name="testStrin gArrayRequest"
message="tns:te stStringArrayRe quest" />
<wsdl:output name="testStrin gArrayResponse"
message="tns:te stStringArrayRe sponse" />
</wsdl:operation>
<wsdl:operati on name="ainvokeTh irdParty" parameterOrder= "targetUrl
functionName parameter">
<wsdl:input name="ainvokeTh irdPartyRequest "
message="tns:ai nvokeThirdParty Request" />
<wsdl:output name="ainvokeTh irdPartyRespons e"
message="tns:ai nvokeThirdParty Response" />
</wsdl:operation>
<wsdl:operati on name="invokeThi rdParty" parameterOrder= "targetUrl
functionName systemName parameter">
<wsdl:input name="invokeThi rdPartyRequest"
message="tns:in vokeThirdPartyR equest" />
<wsdl:output name="invokeThi rdPartyResponse "
message="tns:in vokeThirdPartyR esponse" />
</wsdl:operation>
<wsdl:operati on name="getCustma pById" parameterOrder= "custmapID" >
<wsdl:input name="getCustma pByIdRequest"
message="tns:ge tCustmapByIdReq uest"
/>
<wsdl:output name="getCustma pByIdResponse"
message="tns:ge tCustmapByIdRes ponse" />
</wsdl:operation>
<wsdl:operati on name="getTicket sForCustmap" parameterOrder= "custmapID" >
<wsdl:input name="getTicket sForCustmapRequ est"
message="tns:ge tTicketsForCust mapRequest" />
<wsdl:output name="getTicket sForCustmapResp onse"
message="tns:ge tTicketsForCust mapResponse" />
</wsdl:operation>
<wsdl:operati on name="getExampl eHash">
<wsdl:input name="getExampl eHashRequest"
message="tns:ge tExampleHashReq uest"
/>
<wsdl:output name="getExampl eHashResponse"
message="tns:ge tExampleHashRes ponse" />
</wsdl:operation>
<wsdl:operati on name="getExampl eArray">
<wsdl:input name="getExampl eArrayRequest"
message="tns:ge tExampleArrayRe quest" />
<wsdl:output name="getExampl eArrayResponse"
message="tns:ge tExampleArrayRe sponse" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="RemoteSer vicePortSoapBin ding" type="tns:Remot eService">
<soap:binding transport="http ://schemas.xmlsoap .org/soap/http" style="rpc"
/>
<wsdl:operati on name="testSoapC lient">
<soap:operati on soapAction="" />
<wsdl:input name="testSoapC lientRequest">
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:input>
<wsdl:output name="testSoapC lientResponse">
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:output>
</wsdl:operation>
<wsdl:operati on name="testStrin gArray">
<soap:operati on soapAction="" />
<wsdl:input name="testStrin gArrayRequest">
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:input>
<wsdl:output name="testStrin gArrayResponse" >
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:output>
</wsdl:operation>
<wsdl:operati on name="ainvokeTh irdParty">
<soap:operati on soapAction="" />
<wsdl:input name="ainvokeTh irdPartyRequest ">
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:input>
<wsdl:output name="ainvokeTh irdPartyRespons e">
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:output>
</wsdl:operation>
<wsdl:operati on name="invokeThi rdParty">
<soap:operati on soapAction="" />
<wsdl:input name="invokeThi rdPartyRequest" >
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:input>
<wsdl:output name="invokeThi rdPartyResponse ">
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:output>
</wsdl:operation>
<wsdl:operati on name="getCustma pById">
<soap:operati on soapAction="" />
<wsdl:input name="getCustma pByIdRequest">
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:input>
<wsdl:output name="getCustma pByIdResponse">
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:output>
</wsdl:operation>
<wsdl:operati on name="getTicket sForCustmap">
<soap:operati on soapAction="" />
<wsdl:input name="getTicket sForCustmapRequ est">
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:input>
<wsdl:output name="getTicket sForCustmapResp onse">
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:output>
</wsdl:operation>
<wsdl:operati on name="getExampl eHash">
<soap:operati on soapAction="" />
<wsdl:input name="getExampl eHashRequest">
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:input>
<wsdl:output name="getExampl eHashResponse">
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:output>
</wsdl:operation>
<wsdl:operati on name="getExampl eArray">
<soap:operati on soapAction="" />
<wsdl:input name="getExampl eArrayRequest">
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:input>
<wsdl:output name="getExampl eArrayResponse" >
<soap:body use="encoded" namespace="http ://beans.middlewar e.cat.company.d e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="RemoteSer vice">
<wsdl:port name="RemoteSer vicePort"
binding="tns:Re moteServicePort SoapBinding">
<soap:address location="http://xx-xx-xxx:8080//services/RemoteService" />
</wsdl:port>
</wsdl:service>
</wsdl:definition s>

Nov 21 '05 #2
Hi Dan,

thank you very much for your response!
type ArrayOfParamete r rather than a Parameter array Yes, we have tried this, too. But at the end there will be a Parameter[] at
all. Our class looked like this:

public class ParameterList
{
public Parameter[] paramArray;
...
}

Doesn't work...
Second, have you compared a wire trace of the SOAP packet Yes, of course, we have. The difference between the two Requests is shown in
the following snippets (transporting a ParameterList with one Parameter in
it). Have a look at how the "ParameterL ist" is being transported. Can you
give me some further advice, please?

Thank you very much,
Christian

=== Request of JavaClient (works) =============== ===============
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelo pe xmlns:soapenv=" http://schemas.xmlsoap .org/soap/envelope/"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body >

<ns1:invokeThir dParty
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xmlns:ns1="http ://beans.middlewar e.cat.company.d e">
<targetUrl
xsi:type="xsd:s tring">http://lxdev81.int.cin etic.de:8353/userdaten</targetUrl>
<functionName xsi:type="xsd:s tring">getIdent DataById</functionName>
<systemName xsi:type="xsd:s tring" xsi:nil="true"/>
<parameterLis t href="#id0"/>
</ns1:invokeThird Party>

<multiRef id="id0" soapenc:root="0 "
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xsi:type="ns2:P arameterList"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:ns2="http ://beans.middlewar e.cat.company.d e">
<parameterIte ms xsi:type="soape nc:Array"
soapenc:arrayTy pe="ns2:Paramet er[1]">
<item href="#id1"/>
</parameterItems>
</multiRef>

<multiRef id="id1" soapenc:root="0 "
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xsi:type="ns3:P arameter" xmlns:ns3="http ://beans.middlewar e.cat.company.d e"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/">
<name xsi:type="xsd:s tring">UserID</name>
<parameterVal ue xsi:type="xsd:i nt">500004136 </parameterValue>
</multiRef>

</soapenv:Body>
</soapenv:Envelop e>
=============== =============== =============== ==========
=== Request of .net Client (doesn't work) =============== ===========
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelop e xmlns:soap="htt p://schemas.xmlsoap .org/soap/envelope/"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:tns="http ://beans.middlewar e.cat.company.d e"
xmlns:types="ht tp://beans.middlewar e.cat.company.d e/encodedTypes"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema">
<soap:Body soap:encodingSt yle="http://schemas.xmlsoap .org/soap/encoding/">

<tns:invokeThir dParty>
<targetUrl
xsi:type="xsd:s tring">http://lxdev81.int.cin etic.de:8353/userdaten</targetUrl>
<functionName xsi:type="xsd:s tring">getIdent DataById</functionName>
<systemName xsi:type="xsd:s tring" xsi:nil="true"/>
<parameterLis t href="#id1" />
</tns:invokeThird Party>

<tns:ParameterL ist id="id1" xsi:type="tns:P arameterList">
<parameterIte ms href="#id2" />
</tns:ParameterLi st>

<soapenc:Arra y id="id2" soapenc:arrayTy pe="tns:Paramet er[1]">
<Item href="#id3" />
</soapenc:Array>

<tns:Paramete r id="id3" xsi:type="tns:P arameter">
<name xsi:type="xsd:s tring">UserID</name>
<parameterVal ue xsi:type="xsd:i nt">500004136 </parameterValue>
</tns:Parameter>

</soap:Body>
</soap:Envelope>
=============== =============== =============== ==========
"Dan Rogers" <da***@microsof t.com> schrieb im Newsbeitrag
news:R0******** ******@cpmsftng xa10.phx.gbl... Hi Christian,

I have two thoughts. Looking quickly at this WSDL, have you tried passing
the type ArrayOfParamete r rather than a Parameter array?

Second, have you compared a wire trace of the SOAP packet to see the
difference between the two requests? I suspect that my first suggestion
is
what the Java clients are passing. This isn't an array, but is a type
unto
itself that happens to contain an array of other types.

I hope this helps

Dan Rogers
Microsoft Corporation

Nov 23 '05 #3
I'm reminded why I dislike soap encoding so much.

Any chance you can set these to document literal form? It gets SO much
easier.
--------------------
From: "Christian Wilhelm" <ch********@big foot.de>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Subject: Re: Calling Java WebService from .net Client
Date: Mon, 6 Dec 2004 10:37:23 +0100
Lines: 122
Message-ID: <31************ *@individual.ne t>
References: <31************ *@individual.ne t>
<R0************ **@cpmsftngxa10 .phx.gbl>
X-Trace: individual.net WxJre0nv4n+pgo5 h6BaTgQUBGnF+5N wvokWBV8glf3mLB AiFI=
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Path:
cpmsftngxa10.ph x.gbl!TK2MSFTFE ED01.phx.gbl!TK 2MSFTNGP08.phx. gbl!newsfeed00. s
ul.t-online.de!t-online.de!npeer .de.kpn-eurorings.net!f u-berlin.de!uni-berli
n.de!individual .net!not-for-mail
Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.webservices :7885
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Hi Dan,

thank you very much for your response!
type ArrayOfParamete r rather than a Parameter array Yes, we have tried this, too. But at the end there will be a Parameter[] at
all. Our class looked like this:

public class ParameterList
{
public Parameter[] paramArray;
...
}

Doesn't work...
Second, have you compared a wire trace of the SOAP packet Yes, of course, we have. The difference between the two Requests is shown
in
the following snippets (transporting a ParameterList with one Parameter in
it). Have a look at how the "ParameterL ist" is being transported. Can you
give me some further advice, please?

Thank you very much,
Christian

=== Request of JavaClient (works) =============== ===============
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelo pe xmlns:soapenv=" http://schemas.xmlsoap .org/soap/envelope/"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body >

<ns1:invokeThir dParty
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xmlns:ns1="http ://beans.middlewar e.cat.company.d e">
<targetUrl
xsi:type="xsd:s tring">http://lxdev81.int.cin etic.de:8353/userdaten</targetUr
l>
<functionName xsi:type="xsd:s tring">getIdent DataById</functionName>
<systemName xsi:type="xsd:s tring" xsi:nil="true"/>
<parameterLis t href="#id0"/>
</ns1:invokeThird Party>

<multiRef id="id0" soapenc:root="0 "
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xsi:type="ns2:P arameterList"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:ns2="http ://beans.middlewar e.cat.company.d e">
<parameterIte ms xsi:type="soape nc:Array"
soapenc:arrayTy pe="ns2:Paramet er[1]">
<item href="#id1"/>
</parameterItems>
</multiRef>

<multiRef id="id1" soapenc:root="0 "
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xsi:type="ns3:P arameter" xmlns:ns3="http ://beans.middlewar e.cat.company.d e"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/">
<name xsi:type="xsd:s tring">UserID</name>
<parameterVal ue xsi:type="xsd:i nt">500004136 </parameterValue>
</multiRef>

</soapenv:Body>
</soapenv:Envelop e>
=============== =============== =============== ==========
=== Request of .net Client (doesn't work) =============== ===========
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelop e xmlns:soap="htt p://schemas.xmlsoap .org/soap/envelope/"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:tns="http ://beans.middlewar e.cat.company.d e"
xmlns:types="ht tp://beans.middlewar e.cat.company.d e/encodedTypes"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema">
<soap:Body soap:encodingSt yle="http://schemas.xmlsoap .org/soap/encoding/">

<tns:invokeThir dParty>
<targetUrl
xsi:type="xsd:s tring">http://lxdev81.int.cin etic.de:8353/userdaten</targetUr
l>
<functionName xsi:type="xsd:s tring">getIdent DataById</functionName>
<systemName xsi:type="xsd:s tring" xsi:nil="true"/>
<parameterLis t href="#id1" />
</tns:invokeThird Party>

<tns:ParameterL ist id="id1" xsi:type="tns:P arameterList">
<parameterIte ms href="#id2" />
</tns:ParameterLi st>

<soapenc:Arra y id="id2" soapenc:arrayTy pe="tns:Paramet er[1]">
<Item href="#id3" />
</soapenc:Array>

<tns:Paramete r id="id3" xsi:type="tns:P arameter">
<name xsi:type="xsd:s tring">UserID</name>
<parameterVal ue xsi:type="xsd:i nt">500004136 </parameterValue>
</tns:Parameter>

</soap:Body>
</soap:Envelope>
=============== =============== =============== ==========
"Dan Rogers" <da***@microsof t.com> schrieb im Newsbeitrag
news:R0******** ******@cpmsftng xa10.phx.gbl... Hi Christian,

I have two thoughts. Looking quickly at this WSDL, have you tried passing
the type ArrayOfParamete r rather than a Parameter array?

Second, have you compared a wire trace of the SOAP packet to see the
difference between the two requests? I suspect that my first suggestion
is
what the Java clients are passing. This isn't an array, but is a type
unto
itself that happens to contain an array of other types.

I hope this helps

Dan Rogers
Microsoft Corporation


Nov 23 '05 #4
Hi Dan,
Any chance you can set these to document literal form? Do I have to set this up in my .net-Client or on the Java-WebServer?
How can I set it up?
And what is the main differenz between literal and rpc?

Thank you very much,
Christian

"Dan Rogers" <da***@microsof t.com> schrieb im Newsbeitrag
news:qk******** ******@cpmsftng xa10.phx.gbl... I'm reminded why I dislike soap encoding so much.

Any chance you can set these to document literal form? It gets SO much
easier.
--------------------
From: "Christian Wilhelm" <ch********@big foot.de>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Subject: Re: Calling Java WebService from .net Client
Date: Mon, 6 Dec 2004 10:37:23 +0100
Lines: 122
Message-ID: <31************ *@individual.ne t>
References: <31************ *@individual.ne t>
<R0************ **@cpmsftngxa10 .phx.gbl>
X-Trace: individual.net WxJre0nv4n+pgo5 h6BaTgQUBGnF+5N wvokWBV8glf3mLB AiFI=
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Path:
cpmsftngxa10.ph x.gbl!TK2MSFTFE ED01.phx.gbl!TK 2MSFTNGP08.phx. gbl!newsfeed00. s
ul.t-online.de!t-online.de!npeer .de.kpn-eurorings.net!f u-berlin.de!uni-berli
n.de!individual .net!not-for-mail
Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.webservices :7885
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Hi Dan,

thank you very much for your response!
type ArrayOfParamete r rather than a Parameter array

Yes, we have tried this, too. But at the end there will be a Parameter[]
at
all. Our class looked like this:

public class ParameterList
{
public Parameter[] paramArray;
...
}

Doesn't work...
Second, have you compared a wire trace of the SOAP packet

Yes, of course, we have. The difference between the two Requests is shown
in
the following snippets (transporting a ParameterList with one Parameter in
it). Have a look at how the "ParameterL ist" is being transported. Can you
give me some further advice, please?

Thank you very much,
Christian

=== Request of JavaClient (works) =============== ===============
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelo pe
xmlns:soapenv=" http://schemas.xmlsoap .org/soap/envelope/"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body >

<ns1:invokeThir dParty
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xmlns:ns1="http ://beans.middlewar e.cat.company.d e">
<targetUrl
xsi:type="xsd:s tring">http://lxdev81.int.cin etic.de:8353/userdaten</targetUr
l>
<functionName xsi:type="xsd:s tring">getIdent DataById</functionName>
<systemName xsi:type="xsd:s tring" xsi:nil="true"/>
<parameterLis t href="#id0"/>
</ns1:invokeThird Party>

<multiRef id="id0" soapenc:root="0 "
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xsi:type="ns2:P arameterList"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:ns2="http ://beans.middlewar e.cat.company.d e">
<parameterIte ms xsi:type="soape nc:Array"
soapenc:arrayTy pe="ns2:Paramet er[1]">
<item href="#id1"/>
</parameterItems>
</multiRef>

<multiRef id="id1" soapenc:root="0 "
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xsi:type="ns3:P arameter"
xmlns:ns3="http ://beans.middlewar e.cat.company.d e"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/">
<name xsi:type="xsd:s tring">UserID</name>
<parameterVal ue xsi:type="xsd:i nt">500004136 </parameterValue>
</multiRef>

</soapenv:Body>
</soapenv:Envelop e>
=============== =============== =============== ==========
=== Request of .net Client (doesn't work) =============== ===========
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelop e xmlns:soap="htt p://schemas.xmlsoap .org/soap/envelope/"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:tns="http ://beans.middlewar e.cat.company.d e"
xmlns:types="ht tp://beans.middlewar e.cat.company.d e/encodedTypes"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema">
<soap:Body soap:encodingSt yle="http://schemas.xmlsoap .org/soap/encoding/">

<tns:invokeThir dParty>
<targetUrl
xsi:type="xsd:s tring">http://lxdev81.int.cin etic.de:8353/userdaten</targetUr
l>
<functionName xsi:type="xsd:s tring">getIdent DataById</functionName>
<systemName xsi:type="xsd:s tring" xsi:nil="true"/>
<parameterLis t href="#id1" />
</tns:invokeThird Party>

<tns:ParameterL ist id="id1" xsi:type="tns:P arameterList">
<parameterIte ms href="#id2" />
</tns:ParameterLi st>

<soapenc:Arra y id="id2" soapenc:arrayTy pe="tns:Paramet er[1]">
<Item href="#id3" />
</soapenc:Array>

<tns:Paramete r id="id3" xsi:type="tns:P arameter">
<name xsi:type="xsd:s tring">UserID</name>
<parameterVal ue xsi:type="xsd:i nt">500004136 </parameterValue>
</tns:Parameter>

</soap:Body>
</soap:Envelope>
=============== =============== =============== ==========
"Dan Rogers" <da***@microsof t.com> schrieb im Newsbeitrag
news:R0******** ******@cpmsftng xa10.phx.gbl...
Hi Christian,

I have two thoughts. Looking quickly at this WSDL, have you tried
passing
the type ArrayOfParamete r rather than a Parameter array?

Second, have you compared a wire trace of the SOAP packet to see the
difference between the two requests? I suspect that my first suggestion
is
what the Java clients are passing. This isn't an array, but is a type
unto
itself that happens to contain an array of other types.

I hope this helps

Dan Rogers
Microsoft Corporation


Nov 23 '05 #5
Hi Christian,

Yes, There is a HUGE difference between the two. Best practice for interop
calls for using Document Literal. From what I can see, the packet being
sent back is encoded properly by the .NET code. It is entirely possible
that the java code is looking for specific XML - which is not a requirement
in RPC encoded since only the ID/IDREF pairs need to match. What toos
where the Java side written with?

Regards

Dan
--------------------
From: "Christian Wilhelm" <ch********@big foot.de>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Subject: Re: Calling Java WebService from .net Client
Date: Tue, 7 Dec 2004 09:12:36 +0100
Lines: 171
Message-ID: <31************ *@individual.ne t>
References: <31************ *@individual.ne t>
<R0************ **@cpmsftngxa10 .phx.gbl> <31************ *@individual.ne t>
<qk************ **@cpmsftngxa10 .phx.gbl>
X-Trace: individual.net bsvx72DpLwnuiM9 G2gx5zwmTMNuTCq krEZKT5M/IzkM22CA4Y=
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Path:
cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl!TK 2MSFTNGP08.phx. gbl!newsfeed00. s
ul.t-online.de!t-online.de!newsf eed.freenet.de! fu-berlin.de!uni-berlin.de!in
dividual.net!no t-for-mail
Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.webservices :7935
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Hi Dan,
Any chance you can set these to document literal form? Do I have to set this up in my .net-Client or on the Java-WebServer?
How can I set it up?
And what is the main differenz between literal and rpc?

Thank you very much,
Christian

"Dan Rogers" <da***@microsof t.com> schrieb im Newsbeitrag
news:qk******** ******@cpmsftng xa10.phx.gbl... I'm reminded why I dislike soap encoding so much.

Any chance you can set these to document literal form? It gets SO much
easier.
--------------------
From: "Christian Wilhelm" <ch********@big foot.de>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Subject: Re: Calling Java WebService from .net Client
Date: Mon, 6 Dec 2004 10:37:23 +0100
Lines: 122
Message-ID: <31************ *@individual.ne t>
References: <31************ *@individual.ne t>
<R0************ **@cpmsftngxa10 .phx.gbl>
X-Trace: individual.net WxJre0nv4n+pgo5 h6BaTgQUBGnF+5N wvokWBV8glf3mLB AiFI=
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Path:
cpmsftngxa10.ph x.gbl!TK2MSFTFE ED01.phx.gbl!TK 2MSFTNGP08.phx. gbl!newsfeed00. s ul.t-online.de!t-online.de!npeer .de.kpn-eurorings.net!f u-berlin.de!uni-berli n.de!individual .net!not-for-mail
Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.webservices :7885
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Hi Dan,

thank you very much for your response!
type ArrayOfParamete r rather than a Parameter array Yes, we have tried this, too. But at the end there will be a Parameter[]
at
all. Our class looked like this:

public class ParameterList
{
public Parameter[] paramArray;
...
}

Doesn't work...
Second, have you compared a wire trace of the SOAP packet

Yes, of course, we have. The difference between the two Requests is shown
in
the following snippets (transporting a ParameterList with one Parameter in
it). Have a look at how the "ParameterL ist" is being transported. Can you
give me some further advice, please?

Thank you very much,
Christian

=== Request of JavaClient (works) =============== ===============
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelo pe
xmlns:soapenv=" http://schemas.xmlsoap .org/soap/envelope/"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body >

<ns1:invokeThir dParty
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xmlns:ns1="http ://beans.middlewar e.cat.company.d e">
<targetUrl

xsi:type="xsd:s tring">http://lxdev81.int.cin etic.de:8353/userdaten</targetUr l>
<functionName xsi:type="xsd:s tring">getIdent DataById</functionName>
<systemName xsi:type="xsd:s tring" xsi:nil="true"/>
<parameterLis t href="#id0"/>
</ns1:invokeThird Party>

<multiRef id="id0" soapenc:root="0 "
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xsi:type="ns2:P arameterList"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:ns2="http ://beans.middlewar e.cat.company.d e">
<parameterIte ms xsi:type="soape nc:Array"
soapenc:arrayTy pe="ns2:Paramet er[1]">
<item href="#id1"/>
</parameterItems>
</multiRef>

<multiRef id="id1" soapenc:root="0 "
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xsi:type="ns3:P arameter"
xmlns:ns3="http ://beans.middlewar e.cat.company.d e"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/">
<name xsi:type="xsd:s tring">UserID</name>
<parameterVal ue xsi:type="xsd:i nt">500004136 </parameterValue>
</multiRef>

</soapenv:Body>
</soapenv:Envelop e>
=============== =============== =============== ==========
=== Request of .net Client (doesn't work) =============== ===========
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelop e xmlns:soap="htt p://schemas.xmlsoap .org/soap/envelope/"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:tns="http ://beans.middlewar e.cat.company.d e"
xmlns:types="ht tp://beans.middlewar e.cat.company.d e/encodedTypes"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema">
<soap:Body soap:encodingSt yle="http://schemas.xmlsoap .org/soap/encoding/">

<tns:invokeThir dParty>
<targetUrl
xsi:type="xsd:s tring">http://lxdev81.int.cin etic.de:8353/userdaten</targetUr l>
<functionName xsi:type="xsd:s tring">getIdent DataById</functionName>
<systemName xsi:type="xsd:s tring" xsi:nil="true"/>
<parameterLis t href="#id1" />
</tns:invokeThird Party>

<tns:ParameterL ist id="id1" xsi:type="tns:P arameterList">
<parameterIte ms href="#id2" />
</tns:ParameterLi st>

<soapenc:Arra y id="id2" soapenc:arrayTy pe="tns:Paramet er[1]">
<Item href="#id3" />
</soapenc:Array>

<tns:Paramete r id="id3" xsi:type="tns:P arameter">
<name xsi:type="xsd:s tring">UserID</name>
<parameterVal ue xsi:type="xsd:i nt">500004136 </parameterValue>
</tns:Parameter>

</soap:Body>
</soap:Envelope>
=============== =============== =============== ==========
"Dan Rogers" <da***@microsof t.com> schrieb im Newsbeitrag
news:R0******** ******@cpmsftng xa10.phx.gbl...
Hi Christian,

I have two thoughts. Looking quickly at this WSDL, have you tried
passing
the type ArrayOfParamete r rather than a Parameter array?

Second, have you compared a wire trace of the SOAP packet to see the
difference between the two requests? I suspect that my first suggestion
is
what the Java clients are passing. This isn't an array, but is a type
unto
itself that happens to contain an array of other types.

I hope this helps

Dan Rogers
Microsoft Corporation



Nov 23 '05 #6
Hi Dan,

first at all I want to thank you for your huge help!

At the Java-Server we are using
* JBoss 4.0
* Apache AXIS 1.1
* Eclipse as IDE

How can I set my Client up to using "Document Literal"?
Is there a config File or is this set up in WSDL on the side of the server?
If it is done by WSDL, can you give me a point, how to do this?

Thank you very much again,
Regards,
Christian

"Dan Rogers" <da***@microsof t.com> schrieb im Newsbeitrag
news:tS******** ******@cpmsftng xa10.phx.gbl...
Hi Christian,

Yes, There is a HUGE difference between the two. Best practice for
interop
calls for using Document Literal. From what I can see, the packet being
sent back is encoded properly by the .NET code. It is entirely possible
that the java code is looking for specific XML - which is not a
requirement
in RPC encoded since only the ID/IDREF pairs need to match. What toos
where the Java side written with?

Regards

Dan
--------------------
From: "Christian Wilhelm" <ch********@big foot.de>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Subject: Re: Calling Java WebService from .net Client
Date: Tue, 7 Dec 2004 09:12:36 +0100
Lines: 171
Message-ID: <31************ *@individual.ne t>
References: <31************ *@individual.ne t>
<R0************ **@cpmsftngxa10 .phx.gbl> <31************ *@individual.ne t>
<qk************ **@cpmsftngxa10 .phx.gbl>
X-Trace: individual.net bsvx72DpLwnuiM9 G2gx5zwmTMNuTCq krEZKT5M/IzkM22CA4Y=
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Path:
cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl!TK 2MSFTNGP08.phx. gbl!newsfeed00. s
ul.t-online.de!t-online.de!newsf eed.freenet.de! fu-berlin.de!uni-berlin.de!in
dividual.net!no t-for-mail
Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.webservices :7935
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Hi Dan,
Any chance you can set these to document literal form?

Do I have to set this up in my .net-Client or on the Java-WebServer?
How can I set it up?
And what is the main differenz between literal and rpc?

Thank you very much,
Christian

"Dan Rogers" <da***@microsof t.com> schrieb im Newsbeitrag
news:qk******** ******@cpmsftng xa10.phx.gbl...
I'm reminded why I dislike soap encoding so much.

Any chance you can set these to document literal form? It gets SO much
easier.
--------------------
From: "Christian Wilhelm" <ch********@big foot.de>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Subject: Re: Calling Java WebService from .net Client
Date: Mon, 6 Dec 2004 10:37:23 +0100
Lines: 122
Message-ID: <31************ *@individual.ne t>
References: <31************ *@individual.ne t>
<R0************ **@cpmsftngxa10 .phx.gbl>
X-Trace: individual.net
WxJre0nv4n+pgo5 h6BaTgQUBGnF+5N wvokWBV8glf3mLB AiFI=
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Path:

cpmsftngxa10.ph x.gbl!TK2MSFTFE ED01.phx.gbl!TK 2MSFTNGP08.phx. gbl!newsfeed00. s

ul.t-online.de!t-online.de!npeer .de.kpn-eurorings.net!f u-berlin.de!uni-berli
n.de!individual .net!not-for-mail
Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.webservices :7885
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Hi Dan,

thank you very much for your response!
type ArrayOfParamete r rather than a Parameter array

Yes, we have tried this, too. But at the end there will be a Parameter[]
at
all. Our class looked like this:

public class ParameterList
{
public Parameter[] paramArray;
...
}

Doesn't work...
Second, have you compared a wire trace of the SOAP packet

Yes, of course, we have. The difference between the two Requests is shown
in
the following snippets (transporting a ParameterList with one Parameter
in
it). Have a look at how the "ParameterL ist" is being transported. Can you
give me some further advice, please?

Thank you very much,
Christian

=== Request of JavaClient (works) =============== ===============
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelo pe
xmlns:soapenv=" http://schemas.xmlsoap .org/soap/envelope/"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body >

<ns1:invokeThir dParty
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xmlns:ns1="http ://beans.middlewar e.cat.company.d e">
<targetUrl

xsi:type="xsd:s tring">http://lxdev81.int.cin etic.de:8353/userdaten</targetUr
l>
<functionName xsi:type="xsd:s tring">getIdent DataById</functionName>
<systemName xsi:type="xsd:s tring" xsi:nil="true"/>
<parameterLis t href="#id0"/>
</ns1:invokeThird Party>

<multiRef id="id0" soapenc:root="0 "
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xsi:type="ns2:P arameterList"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:ns2="http ://beans.middlewar e.cat.company.d e">
<parameterIte ms xsi:type="soape nc:Array"
soapenc:arrayTy pe="ns2:Paramet er[1]">
<item href="#id1"/>
</parameterItems>
</multiRef>

<multiRef id="id1" soapenc:root="0 "
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xsi:type="ns3:P arameter"
xmlns:ns3="http ://beans.middlewar e.cat.company.d e"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/">
<name xsi:type="xsd:s tring">UserID</name>
<parameterVal ue xsi:type="xsd:i nt">500004136 </parameterValue>
</multiRef>

</soapenv:Body>
</soapenv:Envelop e>
=============== =============== =============== ==========
=== Request of .net Client (doesn't work) =============== ===========
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelop e xmlns:soap="htt p://schemas.xmlsoap .org/soap/envelope/"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:tns="http ://beans.middlewar e.cat.company.d e"
xmlns:types="ht tp://beans.middlewar e.cat.company.d e/encodedTypes"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema">
<soap:Body
soap:encodingSt yle="http://schemas.xmlsoap .org/soap/encoding/">

<tns:invokeThir dParty>
<targetUrl

xsi:type="xsd:s tring">http://lxdev81.int.cin etic.de:8353/userdaten</targetUr
l>
<functionName xsi:type="xsd:s tring">getIdent DataById</functionName>
<systemName xsi:type="xsd:s tring" xsi:nil="true"/>
<parameterLis t href="#id1" />
</tns:invokeThird Party>

<tns:ParameterL ist id="id1" xsi:type="tns:P arameterList">
<parameterIte ms href="#id2" />
</tns:ParameterLi st>

<soapenc:Arra y id="id2" soapenc:arrayTy pe="tns:Paramet er[1]">
<Item href="#id3" />
</soapenc:Array>

<tns:Paramete r id="id3" xsi:type="tns:P arameter">
<name xsi:type="xsd:s tring">UserID</name>
<parameterVal ue xsi:type="xsd:i nt">500004136 </parameterValue>
</tns:Parameter>

</soap:Body>
</soap:Envelope>
=============== =============== =============== ==========
"Dan Rogers" <da***@microsof t.com> schrieb im Newsbeitrag
news:R0******** ******@cpmsftng xa10.phx.gbl...
Hi Christian,

I have two thoughts. Looking quickly at this WSDL, have you tried
passing
the type ArrayOfParamete r rather than a Parameter array?

Second, have you compared a wire trace of the SOAP packet to see the
difference between the two requests? I suspect that my first suggestion
is
what the Java clients are passing. This isn't an array, but is a type
unto
itself that happens to contain an array of other types.

I hope this helps

Dan Rogers
Microsoft Corporation



Nov 23 '05 #7
Hi Christian,

No, you can't do this in the client. You need to make the service
implementation (and the WSDL) accept document literal requests.

Dan
--------------------
From: "Christian Wilhelm" <ch********@big foot.de>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Subject: Re: Calling Java WebService from .net Client
Date: Wed, 8 Dec 2004 09:47:40 +0100
Lines: 238
Message-ID: <31************ *@individual.ne t>
References: <31************ *@individual.ne t>
<R0************ **@cpmsftngxa10 .phx.gbl> <31************ *@individual.ne t>
<qk************ **@cpmsftngxa10 .phx.gbl> <31************ *@individual.ne t>
<tS************ **@cpmsftngxa10 .phx.gbl>
X-Trace: individual.net f0u6XEJjXRKAQGp AeqSwuQ6g0izKM8 NRYrv/upIfmXiZqDE/c=
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Path:
cpmsftngxa10.ph x.gbl!TK2MSFTNG XA01.phx.gbl!TK 2MSFTNGP08.phx. gbl!newsfeed00. s
ul.t-online.de!newsf eed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berli
n.de!individual .net!not-for-mail
Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.webservices :7979
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Hi Dan,

first at all I want to thank you for your huge help!

At the Java-Server we are using
* JBoss 4.0
* Apache AXIS 1.1
* Eclipse as IDE

How can I set my Client up to using "Document Literal"?
Is there a config File or is this set up in WSDL on the side of the server?
If it is done by WSDL, can you give me a point, how to do this?

Thank you very much again,
Regards,
Christian

"Dan Rogers" <da***@microsof t.com> schrieb im Newsbeitrag
news:tS******** ******@cpmsftng xa10.phx.gbl...
Hi Christian,

Yes, There is a HUGE difference between the two. Best practice for
interop
calls for using Document Literal. From what I can see, the packet being
sent back is encoded properly by the .NET code. It is entirely possible
that the java code is looking for specific XML - which is not a
requirement
in RPC encoded since only the ID/IDREF pairs need to match. What toos
where the Java side written with?

Regards

Dan
--------------------
From: "Christian Wilhelm" <ch********@big foot.de>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Subject: Re: Calling Java WebService from .net Client
Date: Tue, 7 Dec 2004 09:12:36 +0100
Lines: 171
Message-ID: <31************ *@individual.ne t>
References: <31************ *@individual.ne t>
<R0************ **@cpmsftngxa10 .phx.gbl> <31************ *@individual.ne t>
<qk************ **@cpmsftngxa10 .phx.gbl>
X-Trace: individual.net bsvx72DpLwnuiM9 G2gx5zwmTMNuTCq krEZKT5M/IzkM22CA4Y=
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Path:
cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl!TK 2MSFTNGP08.phx. gbl!newsfeed00. s ul.t-online.de!t-online.de!newsf eed.freenet.de! fu-berlin.de!uni-berlin.de!in dividual.net!no t-for-mail
Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.webservices :7935
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Hi Dan,
Any chance you can set these to document literal form?

Do I have to set this up in my .net-Client or on the Java-WebServer?
How can I set it up?
And what is the main differenz between literal and rpc?

Thank you very much,
Christian

"Dan Rogers" <da***@microsof t.com> schrieb im Newsbeitrag
news:qk******** ******@cpmsftng xa10.phx.gbl...
I'm reminded why I dislike soap encoding so much.

Any chance you can set these to document literal form? It gets SO much
easier.
--------------------
From: "Christian Wilhelm" <ch********@big foot.de>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Subject: Re: Calling Java WebService from .net Client
Date: Mon, 6 Dec 2004 10:37:23 +0100
Lines: 122
Message-ID: <31************ *@individual.ne t>
References: <31************ *@individual.ne t>
<R0************ **@cpmsftngxa10 .phx.gbl>
X-Trace: individual.net
WxJre0nv4n+pgo5 h6BaTgQUBGnF+5N wvokWBV8glf3mLB AiFI=
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Path:

cpmsftngxa10.ph x.gbl!TK2MSFTFE ED01.phx.gbl!TK 2MSFTNGP08.phx. gbl!newsfeed00. s

ul.t-online.de!t-online.de!npeer .de.kpn-eurorings.net!f u-berlin.de!uni-berli
n.de!individual .net!not-for-mail
Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.webservices :7885
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Hi Dan,

thank you very much for your response!
type ArrayOfParamete r rather than a Parameter array

Yes, we have tried this, too. But at the end there will be a Parameter[]
at
all. Our class looked like this:

public class ParameterList
{
public Parameter[] paramArray;
...
}

Doesn't work...
Second, have you compared a wire trace of the SOAP packet

Yes, of course, we have. The difference between the two Requests is shown
in
the following snippets (transporting a ParameterList with one Parameter
in
it). Have a look at how the "ParameterL ist" is being transported. Can you
give me some further advice, please?

Thank you very much,
Christian

=== Request of JavaClient (works) =============== ===============
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelo pe
xmlns:soapenv=" http://schemas.xmlsoap .org/soap/envelope/"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body >

<ns1:invokeThir dParty
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xmlns:ns1="http ://beans.middlewar e.cat.company.d e">
<targetUrl

xsi:type="xsd:s tring">http://lxdev81.int.cin etic.de:8353/userdaten</targetUr
l>
<functionName xsi:type="xsd:s tring">getIdent DataById</functionName>
<systemName xsi:type="xsd:s tring" xsi:nil="true"/>
<parameterLis t href="#id0"/>
</ns1:invokeThird Party>

<multiRef id="id0" soapenc:root="0 "
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xsi:type="ns2:P arameterList"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:ns2="http ://beans.middlewar e.cat.company.d e">
<parameterIte ms xsi:type="soape nc:Array"
soapenc:arrayTy pe="ns2:Paramet er[1]">
<item href="#id1"/>
</parameterItems>
</multiRef>

<multiRef id="id1" soapenc:root="0 "
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xsi:type="ns3:P arameter"
xmlns:ns3="http ://beans.middlewar e.cat.company.d e"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/">
<name xsi:type="xsd:s tring">UserID</name>
<parameterVal ue xsi:type="xsd:i nt">500004136 </parameterValue>
</multiRef>

</soapenv:Body>
</soapenv:Envelop e>
=============== =============== =============== ==========
=== Request of .net Client (doesn't work) =============== ===========
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelop e xmlns:soap="htt p://schemas.xmlsoap .org/soap/envelope/"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:tns="http ://beans.middlewar e.cat.company.d e"
xmlns:types="ht tp://beans.middlewar e.cat.company.d e/encodedTypes"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema">
<soap:Body
soap:encodingSt yle="http://schemas.xmlsoap .org/soap/encoding/">

<tns:invokeThir dParty>
<targetUrl

xsi:type="xsd:s tring">http://lxdev81.int.cin etic.de:8353/userdaten</targetUr
l>
<functionName xsi:type="xsd:s tring">getIdent DataById</functionName>
<systemName xsi:type="xsd:s tring" xsi:nil="true"/>
<parameterLis t href="#id1" />
</tns:invokeThird Party>

<tns:ParameterL ist id="id1" xsi:type="tns:P arameterList">
<parameterIte ms href="#id2" />
</tns:ParameterLi st>

<soapenc:Arra y id="id2" soapenc:arrayTy pe="tns:Paramet er[1]">
<Item href="#id3" />
</soapenc:Array>

<tns:Paramete r id="id3" xsi:type="tns:P arameter">
<name xsi:type="xsd:s tring">UserID</name>
<parameterVal ue xsi:type="xsd:i nt">500004136 </parameterValue>
</tns:Parameter>

</soap:Body>
</soap:Envelope>
=============== =============== =============== ==========
"Dan Rogers" <da***@microsof t.com> schrieb im Newsbeitrag
news:R0******** ******@cpmsftng xa10.phx.gbl...
Hi Christian,

I have two thoughts. Looking quickly at this WSDL, have you tried
passing
the type ArrayOfParamete r rather than a Parameter array?

Second, have you compared a wire trace of the SOAP packet to see the
difference between the two requests? I suspect that my first suggestion
is
what the Java clients are passing. This isn't an array, but is a type
unto
itself that happens to contain an array of other types.

I hope this helps

Dan Rogers
Microsoft Corporation




Nov 23 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
6731
by: Lakshmi | last post by:
Hi All, I am having performance issues with the .NET client calling the Java Webservice running on axis. Have detailed the problem below. Please help. I wrote a webservice in Java. Lets name this WebService1. (using Apache Axis 1.1) Scenario 1: -----------
0
2792
by: Det | last post by:
Hi there I am somewhat stuck with calling a WebService from out of a VB App. My Goal: - Get a WebService invoked under MS - Access 2002, not using the MS-SOAP-Toolkit but the .net - Framework My Restrictions: - The WebService is pure Java, running under WebSphere5.1 - The Request requires Basic Authentication and needs to be SSL
3
5062
by: Jerome Cohen | last post by:
AI am trying to call a third-party web service. this service expects an XML fragment that contains the request plus other parameter. adding the web reference created the syntax below(reference.vb). I changed the data type for the structure that contains the XML data from the default "String" to "xml.xmldocument" to enable easy filling of the data. my client code creates an XML document class, fills the data using standard xml dom...
5
12515
by: Nate | last post by:
We are attempting to make a request to a web service (we will refer to it as XXXServices) hosted on a Web Logic server from a C# SOAP client. The server responds with a 401 Unauthorized error (that appears in plain text), and causes the client to crash. This C# code has been deployed both as an ASP.NET application and a WinForms app, each of which produced the same result. Further, moving the clients from a Windows XP machine to Windows...
6
8965
by: Sascha Schmidt | last post by:
Hi again! Well, the first part of my "mission" (calling remoting objects from a webservice) is solved. But there's another part: Calling this C#-Webservice from a java client. Is this a difficult task? Or is this quite easy, like just a few lines of source and using some of the packages from apache.org? Has anybody done this before and will like to tell me about his/her experiences?
4
21403
by: luckyabhishek | last post by:
Hi I am using a java webservice in a .NET application. The xml type of a field in this webservice is xsd:datetime. When i call the webservice from the application i get a deserialization error on the java webservice side. It says "Can not create instance of from string with schema type http://www.w3.org/2001/XMLSchema]". Can anyone let me know what could be the problem. I am just sending a DateTime object which i get from a VB...
1
4034
by: jens Jensen | last post by:
Hello , i'm calling a webservice generated with oracle webservice java tools. I'm not able to add a web reference to a .net client the usual way with visual studio 2005. I was therefore provided with a set of Dll that implement the proxy needed to consume this web service. I'm now wrapping these dlls in a .Net webservice that can be consumed with Visual studio the familliar way.
2
6955
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of attending interviews. If you own a company best way to judge if the candidate is worth of it. http://www.questpond.com/InterviewRatingSheet.zip
0
8578
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9120
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8998
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8857
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8831
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7668
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4346
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3013
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2278
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.