Are you using Axis2 1.2? There seem to be an issue in the WSDL and i suspect
you used a stub to invoke the service.  The whttp:location in the
HTTPBinding should have been whttp:location="LicenceManager/CreateLicence"
instead of whttp:location="/CreateLicence". Here is an workaround. Save the
WSDL edit it as I have mentined and drop it into the META-INF directory of
the service archive. Now your generated WSDL should have
whttp:location="LicenceManager/CreateLicence" and the generated stub should
work.

Thanks,
Keith.

>

On Thu, Jun 19, 2008 at 9:39 PM, jeusdi <[EMAIL PROTECTED]> wrote:

>
> <wsdl2:description
> targetNamespace="http://www.grupmicros.com/LicenceManager/";>
> <wsdl2:documentation>LicenceManager</wsdl2:documentation>
> −
>        <wsdl2:types>
> −
>        <xsd:schema attributeFormDefault="unqualified"
> elementFormDefault="unqualified"
> targetNamespace="http://www.grupmicros.com/LicenceManager/";>
> −
>        <xsd:element name="CreateLicence">
> −
>        <xsd:complexType>
> −
>        <xsd:sequence>
> <xsd:element form="unqualified" name="proc_id" type="xsd:string"/>
> <xsd:element form="unqualified" name="client" type="xsd:string"/>
> <xsd:element form="unqualified" name="wind_id" type="xsd:string"/>
> <xsd:element form="unqualified" name="mac" type="xsd:string"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> −
>        <xsd:element name="CreateLicenceResponse">
> −
>        <xsd:complexType>
> −
>        <xsd:sequence>
> <xsd:element form="unqualified" name="licence" type="xsd:base64Binary"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> </wsdl2:types>
> −
>        <wsdl2:interface name="LicenceManagerPortType">
> −
>        <wsdl2:operation name="CreateLicence"
> style="http://www.w3.org/ns/wsdl/style/rpc
> http://www.w3.org/ns/wsdl/style/iri
> http://www.w3.org/ns/wsdl/style/multipart"; wrpc:signature="proc_id #in
> client #in wind_id #in mac #in licence #return "
> pattern="http://www.w3.org/ns/wsdl/in-out";>
> <wsdl2:input element="tns:CreateLicence"/>
> <wsdl2:output element="tns:CreateLicenceResponse"
> wsaw:Action="
> http://www.grupmicros.com/LicenceManager/LicenceManagerPortType/CreateLicenceResponse
> "/>
> </wsdl2:operation>
> </wsdl2:interface>
> −
>        <wsdl2:binding name="LicenceManagerHTTPBinding"
> interface="tns:LicenceManagerPortType" whttp:methodDefault="POST"
> type="http://www.w3.org/ns/wsdl/http";>
> <wsdl2:operation ref="tns:CreateLicence"
> whttp:inputSerialization="application/x-www-form-urlencoded"
> whttp:location="/CreateLicence"/>
> </wsdl2:binding>
> −
>        <wsdl2:service name="LicenceManager"
> interface="tns:LicenceManagerPortType">
> <wsdl2:endpoint name="LicenceManagerHTTP"
> binding="tns:LicenceManagerHTTPBinding" address="http://www.example.org/
> "/>
> </wsdl2:service>
> </wsdl2:description>
> --
> View this message in context:
> http://www.nabble.com/Unexpected-subelement-tp17979173p18012455.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

Reply via email to