You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Joao Simas <js...@sinfic.pt> on 2006/07/18 15:18:20 UTC
Problems retrieving wsdl
Hello.
I've created a http service unit that is used like a proxy to a webservice:
(xbean.xml)
<?xml version="1.0"?>
<beans xmlns:http="http://servicemix.apache.org/http/1.0"
xmlns:exns="http://www.example.pt/example">
<http:endpoint service=" exns:TestConsumer" endpoint="TestConsumerEndpoint"
targetService=" exns:TestProvider" targetEndpoint="TestProviderEndpoint"
role="consumer" soap="true" locationURI="http://localhost:4044/ "
defaultMep="http://www.w3.org/2004/08/wsdl/in-out" />
<http:endpoint service="exns:TestProvider"
endpoint="TestProviderEndpoint" role="provider"
locationURI="http://localhost:2050/WebSite1/Service.asmx/HelloWorld"
soap="true" wsdlResource="url:http://localhost:2050/WebSite1/Service.asmx?wsdl" />
I launch the service mix without errors (wsdl is retrieved). Then I launch the browser and go to
http://localhost:4044/?wsdl (like in described in http://servicemix.org/site/servicemix-http.html)
and instead of retrieving the wsdl I get this:
HTTP ERROR: 404
NOT_FOUND
RequestURI=/main.wsdl
Powered by Jetty://
Can anyone help me? Thanks!
João Simas
Re: Problems retrieving wsdl
Posted by lipkap <p....@amg.net.pl>.
I had a similar problem - It turned out that my service units got deployed in
the wrong order the service implementation (in my case a jsr181 su) has to
be deployed before the http endpoint.
Also note that if an http endpoint is a consumer its service and endpoint
attributes must agree with the service and binding name of the
implementation su wsdl.
--
View this message in context: http://www.nabble.com/Problems-retrieving-wsdl-tf1960519.html#a5412538
Sent from the ServiceMix - User forum at Nabble.com.
RE: Problems retrieving wsdl
Posted by Joao Simas <js...@sinfic.pt>.
The problem is that I'm not trying to access directly to the webservice, I'm trying to retrieve wsdl through Service Mix...
I'm trying to access to a web service in a remote machine via service mix, but still didn't succeed :(
But still, thanks for your help.
João Simas
-----Original Message-----
From: Alex Boisvert [mailto:boisvert@intalio.com]
Sent: terça-feira, 18 de Julho de 2006 23:36
To: servicemix-users@geronimo.apache.org
Subject: Re: Problems retrieving wsdl
For what it's worth, I found that adding a trailing slash "/" at the end
of the URL worked for me.
e.g., if my WSDL had soap:address="http://localhost:8080/foo", sending
to "http://localhost:8080/foo/" works
alex
Philip Dodds wrote:
> We are currently looking at this :)
>
> P
>
> On 7/18/06, Joao Simas <js...@sinfic.pt> wrote:
>>
>> Hello.
>>
>> I've created a http service unit that is used like a proxy to a
>> webservice:
>>
>> (xbean.xml)
>> <?xml version="1.0"?>
>> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>> xmlns:exns="http://www.example.pt/example">
>>
>> <http:endpoint service=" exns:TestConsumer"
>> endpoint="TestConsumerEndpoint"
>> targetService="
>> exns:TestProvider" targetEndpoint="TestProviderEndpoint"
>> role="consumer" soap="true" locationURI="
>> http://localhost:4044/ "
>> defaultMep="http://www.w3.org/2004/08/wsdl/in-out" />
>>
>> <http:endpoint service="exns:TestProvider"
>> endpoint="TestProviderEndpoint" role="provider"
>> locationURI="
>> http://localhost:2050/WebSite1/Service.asmx/HelloWorld"
>> soap="true" wsdlResource="url:
>> http://localhost:2050/WebSite1/Service.asmx?wsdl" />
>>
>> I launch the service mix without errors (wsdl is retrieved). Then I
>> launch
>> the browser and go to
>> http://localhost:4044/?wsdl (like in described in
>> http://servicemix.org/site/servicemix-http.html)
>> and instead of retrieving the wsdl I get this:
>>
>> HTTP ERROR: 404
>>
>> NOT_FOUND
>>
>> RequestURI=/main.wsdl
>>
>> Powered by Jetty://
>>
>> Can anyone help me? Thanks!
>>
>>
>> João Simas
>>
>
Re: Problems retrieving wsdl
Posted by Alex Boisvert <bo...@intalio.com>.
For what it's worth, I found that adding a trailing slash "/" at the end
of the URL worked for me.
e.g., if my WSDL had soap:address="http://localhost:8080/foo", sending
to "http://localhost:8080/foo/" works
alex
Philip Dodds wrote:
> We are currently looking at this :)
>
> P
>
> On 7/18/06, Joao Simas <js...@sinfic.pt> wrote:
>>
>> Hello.
>>
>> I've created a http service unit that is used like a proxy to a
>> webservice:
>>
>> (xbean.xml)
>> <?xml version="1.0"?>
>> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>> xmlns:exns="http://www.example.pt/example">
>>
>> <http:endpoint service=" exns:TestConsumer"
>> endpoint="TestConsumerEndpoint"
>> targetService="
>> exns:TestProvider" targetEndpoint="TestProviderEndpoint"
>> role="consumer" soap="true" locationURI="
>> http://localhost:4044/ "
>> defaultMep="http://www.w3.org/2004/08/wsdl/in-out" />
>>
>> <http:endpoint service="exns:TestProvider"
>> endpoint="TestProviderEndpoint" role="provider"
>> locationURI="
>> http://localhost:2050/WebSite1/Service.asmx/HelloWorld"
>> soap="true" wsdlResource="url:
>> http://localhost:2050/WebSite1/Service.asmx?wsdl" />
>>
>> I launch the service mix without errors (wsdl is retrieved). Then I
>> launch
>> the browser and go to
>> http://localhost:4044/?wsdl (like in described in
>> http://servicemix.org/site/servicemix-http.html)
>> and instead of retrieving the wsdl I get this:
>>
>> HTTP ERROR: 404
>>
>> NOT_FOUND
>>
>> RequestURI=/main.wsdl
>>
>> Powered by Jetty://
>>
>> Can anyone help me? Thanks!
>>
>>
>> João Simas
>>
>
Re: Problems retrieving wsdl
Posted by Philip Dodds <ph...@gmail.com>.
We are currently looking at this :)
P
On 7/18/06, Joao Simas <js...@sinfic.pt> wrote:
>
> Hello.
>
> I've created a http service unit that is used like a proxy to a
> webservice:
>
> (xbean.xml)
> <?xml version="1.0"?>
> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
> xmlns:exns="http://www.example.pt/example">
>
> <http:endpoint service=" exns:TestConsumer"
> endpoint="TestConsumerEndpoint"
> targetService="
> exns:TestProvider" targetEndpoint="TestProviderEndpoint"
> role="consumer" soap="true" locationURI="
> http://localhost:4044/ "
> defaultMep="http://www.w3.org/2004/08/wsdl/in-out" />
>
> <http:endpoint service="exns:TestProvider"
> endpoint="TestProviderEndpoint" role="provider"
> locationURI="
> http://localhost:2050/WebSite1/Service.asmx/HelloWorld"
> soap="true" wsdlResource="url:
> http://localhost:2050/WebSite1/Service.asmx?wsdl" />
>
> I launch the service mix without errors (wsdl is retrieved). Then I launch
> the browser and go to
> http://localhost:4044/?wsdl (like in described in
> http://servicemix.org/site/servicemix-http.html)
> and instead of retrieving the wsdl I get this:
>
> HTTP ERROR: 404
>
> NOT_FOUND
>
> RequestURI=/main.wsdl
>
> Powered by Jetty://
>
> Can anyone help me? Thanks!
>
>
> João Simas
>