Interoperability JAVA / .NET [message #168519] |
Thu, 04 May 2006 14:41 |
Eclipse User |
|
|
|
Originally posted by: arochefort.consignity.fr
Hello
I'm trying to create a J2EE client for a webservice made whith .NET. I
use Tomcat/Axis and the server uses IIS.
I've generate webservices classes using the graphical tool of Eclipse WTP.
I don't know how to put the auhtentification header.
The problem is that when a generate classes from the WSDL, I haven't the
class AuthHeader which is in the WSDL, and when I call the method
validerOperation(...) the server returns : "--> The referenced object is
not linked to an instancied object".
Here is the WSDL :
<wsdl:definitions
targetNamespace="https://clients.webservices.novea.fr/arlanda10/">
<wsdl:types>
<s:schema elementFormDefault="qualified"
targetNamespace="https://clients.webservices.novea.fr/arlanda10/">
<s:element name="Ping">
<s:complexType/>
</s:element>
<s:element name="PingResponse">
<s:complexType/>
</s:element>
<s:element name="ValiderOperation">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="numeroCommande"
type="s:string"/>
<s:element minOccurs="1" maxOccurs="1" name="codeCoursier" type="s:int"/>
<s:element minOccurs="1" maxOccurs="1" name="retraitDepot"
type="s:boolean"/>
<s:element minOccurs="0" maxOccurs="1" name="consigne" type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="ValiderOperationResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="ValiderOperationResult"
type="s:boolean"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="AuthHeader" type="tns:AuthHeader"/>
<s:complexType name="AuthHeader">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Username" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="Langue" type="s:string"/>
</s:sequence>
</s:complexType>
</s:schema>
</wsdl:types>
<wsdl:message name="PingSoapIn">
<wsdl:part name="parameters" element="tns:Ping"/>
</wsdl:message>
<wsdl:message name="PingSoapOut">
<wsdl:part name="parameters" element="tns:PingResponse"/>
</wsdl:message>
<wsdl:message name="ValiderOperationSoapIn">
<wsdl:part name="parameters" element="tns:ValiderOperation"/>
</wsdl:message>
<wsdl:message name="ValiderOperationSoapOut">
<wsdl:part name="parameters" element="tns:ValiderOperationResponse"/>
</wsdl:message>
<wsdl:message name="ValiderOperationAuthHeader">
<wsdl:part name="AuthHeader" element="tns:AuthHeader"/>
</wsdl:message>
<wsdl:portType name="consignitySoap">
<wsdl:operation name="Ping">
<documentation>
Méthode simple pour vérifier la connexion au Web Service
</documentation>
<wsdl:input message="tns:PingSoapIn"/>
<wsdl:output message="tns:PingSoapOut"/>
</wsdl:operation>
<wsdl:operation name="ValiderOperation">
<documentation>
Permet de valider le dépôt ou le retrait d'une commande dans une consigne.
</documentation>
<wsdl:input message="tns:ValiderOperationSoapIn"/>
<wsdl:output message="tns:ValiderOperationSoapOut"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="consignitySoap" type="tns:consignitySoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document"/>
<wsdl:operation name="Ping">
<soap:operation
soapAction="https://clients.webservices.novea.fr/arlanda10/Ping"
style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="ValiderOperation">
<soap:operation
soapAction=" https://clients.webservices.novea.fr/arlanda10/ValiderOperat ion"
style="document"/>
<wsdl:input>
<soap:body use="literal"/>
<soap:header message="tns:ValiderOperationAuthHeader" part="AuthHeader"
use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="consignity">
<wsdl:port name="consignitySoap" binding="tns:consignitySoap">
<soap:address
location="https://test.webservices.novea.fr/arlanda/consignity.asmx"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
And the testing adress :
https://test.webservices.novea.fr/arlanda/consignity.asmx
Does anyone know how to authentificate to the server ? Or maybe I'm
wrong for something else...
Thanks
Antoine
|
|
|
|
Powered by
FUDForum. Page generated in 0.02928 seconds