Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Calling Axis WebService out of .net Client

Reply
Thread Tools

Calling Axis WebService out of .net Client

 
 
Christian Wilhelm
Guest
Posts: n/a
 
      12-16-2004
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.JAXRPCException: org.xml.sax.SAXException: No deserializer
defined for array type {http://beans.middleware.cat.company.de}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 interoperability between .net and Java.

Does anyone have experience with Interoperability between the two Systems?

Best Regards,
Christian


=== This is the WSDL-File of the Service ===

<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://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.middleware.cat.company.de"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="http://beans.middleware.cat.compay.de"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://beans.middleware.cat.company.de">
<s:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
<s:complexType name="ArrayOf_xsd_string">
<s:complexContent mixed="false">
<s:restriction base="soapenc:Array">
<s:attribute wsdl:arrayType="s:string[]" ref="soapenc:arrayType" />
</s:restriction>
</s:complexContent>
</s:complexType>
<s:complexType name="CustmapData">
<s:sequence>
<s:element name="ID" nillable="true" type="s:int" />
<s:element name="createFrom" nillable="true" type="s:int" />
<s:element name="createStamp" nillable="true" type="s:dateTime" />
<s:element name="primaryKey" 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:complexType name="TicketData">
<s:sequence>
<s:element name="ID" nillable="true" type="s:int" />
<s:element name="createAt" nillable="true" type="s:dateTime" />
<s:element name="createFrom" nillable="true" type="s:int" />
<s:element name="custmapId" nillable="true" type="s:int" />
<s:element name="escalationlevel" nillable="true" type="s:int" />
<s:element name="lastaccessAt" nillable="true" type="s:dateTime" />
<s:element name="lastaccessFrom" 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="primaryKey" 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:complexType name="ArrayOfTicketData">
<s:complexContent mixed="false">
<s:restriction base="soapenc:Array">
<s:attribute wsdl:arrayType="tns:TicketData[]" ref="soapenc:arrayType" />
</s:restriction>
</s:complexContent>
</s:complexType>
<s:complexType name="CustmapTransferObject">
<s:complexContent mixed="false">
<s:extension base="tns:CustmapData">
<s:sequence>
<s:element name="tickets" nillable="true" type="tns:ArrayOfTicketData" />
</s:sequence>
</s:extension>
</s:complexContent>
</s:complexType>
<s:complexType name="Parameter">
<s:sequence>
<s:element name="name" nillable="true" type="s:string" />
<s:element name="parameterValue" nillable="true" type="s:anyType" />
</s:sequence>
</s:complexType>
<s:complexType name="ArrayOf_xsd_anyType">
<s:complexContent mixed="false">
<s:restriction base="soapenc:Array">
<s:attribute wsdl:arrayType="s:anyType[]" ref="soapenc:arrayType" />
</s:restriction>
</s:complexContent>
</s:complexType>
<s:complexType name="ArrayOfParameter">
<s:complexContent mixed="false">
<s:restriction base="soapenc:Array">
<s:attribute wsdl:arrayType="tnsarameter[]" ref="soapenc:arrayType" />
</s:restriction>
</s:complexContent>
</s:complexType>
<s:complexType name="ParameterArray">
<s:sequence>
<s:element name="parameterArray" nillable="true" type="tns:ArrayOfParameter"
/>
</s:sequence>
</s:complexType>
</s:schema>
</wsdl:types>
<wsdl:message name="getExampleHashResponse">
<wsdlart name="getExampleHashReturn" type="tnsarameter" />
</wsdl:message>
<wsdl:message name="ainvokeThirdPartyRequest">
<wsdlart name="targetUrl" type="s:string" />
<wsdlart name="functionName" type="s:string" />
<wsdlart name="parameter" type="s:anyType" />
</wsdl:message>
<wsdl:message name="testSoapClientRequest" />
<wsdl:message name="getExampleArrayRequest" />
<wsdl:message name="getCustmapByIdResponse">
<wsdlart name="getCustmapByIdReturn" type="tns:CustmapTransferObject" />
</wsdl:message>
<wsdl:message name="getExampleHashRequest" />
<wsdl:message name="getCustmapByIdRequest">
<wsdlart name="custmapID" type="s:int" />
</wsdl:message>
<wsdl:message name="getTicketsForCustmapRequest">
<wsdlart name="custmapID" type="s:int" />
</wsdl:message>
<wsdl:message name="testSoapClientResponse">
<wsdlart name="testSoapClientReturn" type="s:anyType" />
</wsdl:message>
<wsdl:message name="testStringArrayRequest">
<wsdlart name="strArray" type="tns:ArrayOf_xsd_string" />
</wsdl:message>
<wsdl:message name="testStringArrayResponse">
<wsdlart name="testStringArrayReturn" type="s:string" />
</wsdl:message>
<wsdl:message name="getExampleArrayResponse">
<wsdlart name="getExampleArrayReturn" type="tns:ArrayOf_xsd_anyType" />
</wsdl:message>
<wsdl:message name="invokeThirdPartyRequest">
<wsdlart name="targetUrl" type="s:string" />
<wsdlart name="functionName" type="s:string" />
<wsdlart name="systemName" type="s:string" />
<wsdlart name="parameter" type="s:anyType" />
</wsdl:message>
<wsdl:message name="ainvokeThirdPartyResponse">
<wsdlart name="ainvokeThirdPartyReturn" type="s:anyType" />
</wsdl:message>
<wsdl:message name="invokeThirdPartyResponse">
<wsdlart name="invokeThirdPartyReturn" type="s:anyType" />
</wsdl:message>
<wsdl:message name="getTicketsForCustmapResponse">
<wsdlart name="getTicketsForCustmapReturn" type="tns:ArrayOfTicketData" />
</wsdl:message>
<wsdlortType name="RemoteService">
<wsdlperation name="testSoapClient">
<wsdl:input name="testSoapClientRequest" message="tns:testSoapClientRequest"
/>
<wsdlutput name="testSoapClientResponse"
message="tns:testSoapClientResponse" />
</wsdlperation>
<wsdlperation name="testStringArray" parameterOrder="strArray">
<wsdl:input name="testStringArrayRequest"
message="tns:testStringArrayRequest" />
<wsdlutput name="testStringArrayResponse"
message="tns:testStringArrayResponse" />
</wsdlperation>
<wsdlperation name="ainvokeThirdParty" parameterOrder="targetUrl
functionName parameter">
<wsdl:input name="ainvokeThirdPartyRequest"
message="tns:ainvokeThirdPartyRequest" />
<wsdlutput name="ainvokeThirdPartyResponse"
message="tns:ainvokeThirdPartyResponse" />
</wsdlperation>
<wsdlperation name="invokeThirdParty" parameterOrder="targetUrl
functionName systemName parameter">
<wsdl:input name="invokeThirdPartyRequest"
message="tns:invokeThirdPartyRequest" />
<wsdlutput name="invokeThirdPartyResponse"
message="tns:invokeThirdPartyResponse" />
</wsdlperation>
<wsdlperation name="getCustmapById" parameterOrder="custmapID">
<wsdl:input name="getCustmapByIdRequest" message="tns:getCustmapByIdRequest"
/>
<wsdlutput name="getCustmapByIdResponse"
message="tns:getCustmapByIdResponse" />
</wsdlperation>
<wsdlperation name="getTicketsForCustmap" parameterOrder="custmapID">
<wsdl:input name="getTicketsForCustmapRequest"
message="tns:getTicketsForCustmapRequest" />
<wsdlutput name="getTicketsForCustmapResponse"
message="tns:getTicketsForCustmapResponse" />
</wsdlperation>
<wsdlperation name="getExampleHash">
<wsdl:input name="getExampleHashRequest" message="tns:getExampleHashRequest"
/>
<wsdlutput name="getExampleHashResponse"
message="tns:getExampleHashResponse" />
</wsdlperation>
<wsdlperation name="getExampleArray">
<wsdl:input name="getExampleArrayRequest"
message="tns:getExampleArrayRequest" />
<wsdlutput name="getExampleArrayResponse"
message="tns:getExampleArrayResponse" />
</wsdlperation>
</wsdlortType>
<wsdl:binding name="RemoteServicePortSoapBinding" type="tns:RemoteService">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"
/>
<wsdlperation name="testSoapClient">
<soapperation soapAction="" />
<wsdl:input name="testSoapClientRequest">
<soap:body use="encoded" namespace="http://beans.middleware.cat.company.de"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdl:input>
<wsdlutput name="testSoapClientResponse">
<soap:body use="encoded" namespace="http://beans.middleware.cat.company.de"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdlutput>
</wsdlperation>
<wsdlperation name="testStringArray">
<soapperation soapAction="" />
<wsdl:input name="testStringArrayRequest">
<soap:body use="encoded" namespace="http://beans.middleware.cat.company.de"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdl:input>
<wsdlutput name="testStringArrayResponse">
<soap:body use="encoded" namespace="http://beans.middleware.cat.company.de"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdlutput>
</wsdlperation>
<wsdlperation name="ainvokeThirdParty">
<soapperation soapAction="" />
<wsdl:input name="ainvokeThirdPartyRequest">
<soap:body use="encoded" namespace="http://beans.middleware.cat.company.de"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdl:input>
<wsdlutput name="ainvokeThirdPartyResponse">
<soap:body use="encoded" namespace="http://beans.middleware.cat.company.de"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdlutput>
</wsdlperation>
<wsdlperation name="invokeThirdParty">
<soapperation soapAction="" />
<wsdl:input name="invokeThirdPartyRequest">
<soap:body use="encoded" namespace="http://beans.middleware.cat.company.de"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdl:input>
<wsdlutput name="invokeThirdPartyResponse">
<soap:body use="encoded" namespace="http://beans.middleware.cat.company.de"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdlutput>
</wsdlperation>
<wsdlperation name="getCustmapById">
<soapperation soapAction="" />
<wsdl:input name="getCustmapByIdRequest">
<soap:body use="encoded" namespace="http://beans.middleware.cat.company.de"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdl:input>
<wsdlutput name="getCustmapByIdResponse">
<soap:body use="encoded" namespace="http://beans.middleware.cat.company.de"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdlutput>
</wsdlperation>
<wsdlperation name="getTicketsForCustmap">
<soapperation soapAction="" />
<wsdl:input name="getTicketsForCustmapRequest">
<soap:body use="encoded" namespace="http://beans.middleware.cat.company.de"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdl:input>
<wsdlutput name="getTicketsForCustmapResponse">
<soap:body use="encoded" namespace="http://beans.middleware.cat.company.de"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdlutput>
</wsdlperation>
<wsdlperation name="getExampleHash">
<soapperation soapAction="" />
<wsdl:input name="getExampleHashRequest">
<soap:body use="encoded" namespace="http://beans.middleware.cat.company.de"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdl:input>
<wsdlutput name="getExampleHashResponse">
<soap:body use="encoded" namespace="http://beans.middleware.cat.company.de"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdlutput>
</wsdlperation>
<wsdlperation name="getExampleArray">
<soapperation soapAction="" />
<wsdl:input name="getExampleArrayRequest">
<soap:body use="encoded" namespace="http://beans.middleware.cat.company.de"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdl:input>
<wsdlutput name="getExampleArrayResponse">
<soap:body use="encoded" namespace="http://beans.middleware.cat.company.de"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdlutput>
</wsdlperation>
</wsdl:binding>
<wsdl:service name="RemoteService">
<wsdlort name="RemoteServicePort"
binding="tns:RemoteServicePortSoapBinding">
<soap:address location="http://xx-xx-xxx:8080//services/RemoteService" />
</wsdlort>
</wsdl:service>
</wsdl:definitions>




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem to call a WEBSERVICE in another WEBSERVICE (AXIS/ TOMCAT) Cyril Java 2 06-01-2006 06:07 PM
Webservice-Client (Axis) with HTTP-Authentication: how to do? Reinhard Java 0 03-29-2006 09:23 PM
Calling a Web Service using Axis, from within an Axis Web Service running under Tomcat hocho888 Java 1 04-29-2005 08:26 PM
AXIS jars org.apache.axis.wsi.* and org.apache.axis.transport.jms.* unkwb@web.de Java 0 02-23-2005 04:02 PM
axis.jar does not contain org.apache.axis.client.ServiceClient? Joey Vendetta Java 0 04-01-2004 05:51 PM



Advertisments