Try http://localhost/axis2/services/TestWS/myxsd.xsd because we need
to know which aar the xsd is in...
-- dims
On 5/25/07, Tobias Seng <[EMAIL PROTECTED]> wrote:
Yes I tried this, and both
http://localhost/axis2/services/TestWS?wsdl
http://localhost/axis2/services/TestWS?xsd=myxsd.xsd
works.
But I think the address for the xsd than should be
http://localhost/axis2/services/myxsd.xsd
and this does not work.
Thanks Tobias
> Did you try the obvious?
>
> <xsd:import namespace="mynamespace" schemaLocation="myxsd.xsd" />
>
> And drop both the wsdl and xsd into the aar?
>
> and check if the following works?
>
> http://localhost/axis2/services/TestWS?wsdl
>
>
> thanks,
> dims
>
> On 5/25/07, Tobias Seng <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I tried to register a webservice aar containing an own wsdl and an
>> own xsd.
>> If the wsdl does not import the xsd everything works fine.
>> I can call
>> http://localhost/axis2/services/TestWS?wsdl
>> and
>> http://localhost/axis2/services/TestWS?xsd=myxsd.xsd
>> and I get the expected result.
>>
>> But if I import the xsd into the wsdl like one of the following
>> <xsd:import namespace="mynamespace"
>> schemaLocation="?xsd=myxsd.xsd" />
>> or
>> <xsd:import namespace="mynamespace"
>> schemaLocation="TestWS?xsd=myxsd.xsd" />
>> or
>> <xsd:import namespace="mynamespace"
>> schemaLocation="http://localhost/axis2/services/TestWS?xsd=myxsd.xsd" />
>> the following error occurs.
>>
>> javax.wsdl.WSDLException: WSDLException (at
>> /wsdl:definitions/wsdl:types/xsd:schema): faultCode=PARSER_ERROR:
>> Problem parsing 'http://localhost/axis2/services/TestWS?xsd=myxsd.xsd'.:
>> java.io.IOException: Server returned HTTP response code: 500 for URL:
>> http://localhost/axis2/services/TestWS?xsd=myxsd.xsd
>>
>> Of cause I can write the following input element to the wsdl
>> <xsd:import namespace="mynamespace" schemaLocation="myxsd.xsd" />
>> and the registration works, but than I have to put the xsd outside of my
>> aar file to the root location.
>>
>> Any ideas?
>>
>> Tobias
>>
>>
>> ---------------------------------------------------------------------
>> 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]
--
Davanum Srinivas :: http://davanum.wordpress.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]