Axis2 does not support rpc/encoding.
On 4/11/07, Anton Pirker <[EMAIL PROTECTED]> wrote:
Hi again!
In my first mail i forget the Binding of the WSDL. Maybe this is also
important:
------ snip ---------
<binding name="ssoServiceBinding" type="typens:ssoServicePort">
<soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="ssoLogin">
<soap:operation soapAction="urn:ssoServiceAction"/>
<input>
<soap:body use="literal" namespace="urn:ssoService"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body use="literal" namespace="urn:ssoService"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
</binding>
------ snap ---------
Anton Pirker wrote:
> Hi all!
>
> I am new to Axis2 and trying to implement an SSO service. I have an
> WSDL from which i generated my java stub.
> When i call the generated ssoLogin-Method i allways get an "Unexpected
> subelement".
>
> This is what the WSDL looks like: (only the important parts)
>
>
> ------ snip ---------
> <operation name="ssoLogin" parameterOrder="ssoLoginUser c_login
> c_password c_client">
> <input message="typens:ssoLoginRequest"/>
> <output message="typens:ssoLoginResponse"/>
> </operation>
>
> <message name="ssoLoginResponse">
> <part name="ssoLoginRet" type="typens:ssoLoginRet"/>
> </message>
>
> <xsd:complexType name="ssoLoginRet">
> <xsd:all>
> <xsd:element minOccurs="0" maxOccurs="1" name="login"
> type="xsd:string"/>
> <xsd:element minOccurs="0" maxOccurs="1" name="email"
> type="xsd:string"/>
> <xsd:element minOccurs="0" maxOccurs="1" name="hash"
> type="xsd:string"/>
> <xsd:element minOccurs="0" maxOccurs="1" name="token"
> type="xsd:string"/>
> ...
> </xsd:all>
> </xsd:complexType>
> ------ snap ---------
>
>
> and this is the response i get (copied from the log):
> ------ snip ---------
> <SOAP-ENV:Envelope
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:ns1="urn:ssoService"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
>
> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
> <SOAP-ENV:Body>
> <ns1:ssoLoginResponse>
> <ns1:ssoLoginRet xsi:type="ns1:ssoLoginRet">
> <login xsi:type="xsd:string">a.pirker</login>
> <email xsi:type="xsd:string">[EMAIL PROTECTED]</email>
> <hash
> xsi:type="xsd:string">bd3eb6079db946622fcbc84f5204f01a</hash>
> <token
> xsi:type="xsd:string">a2047ad88fc3bd91b1034e544a0934c1</token>
> </ns1:ssoLoginRet>
> </ns1:ssoLoginResponse>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> ------ snap ---------
>
> I do not see the error. i have an output message loginResponse which
> contains a part of type loginRet. And that is exactly what i am
> getting...
> What am i missing?
>
> My setup: Yesterdays snapshot of Axis2 on Windows.
> Build the Stub with following command: [axis2-dir]\bin> wsdl2java.bat
> -uri Authentification.wsdl -p at.ignaz.sso -d adb -s -o sso
>
>
> Any help is greatly appreciated!
>
> Thanks in advance,
> Anton
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]