users@jax-rpc.java.net

Re: jaxrpc client problem

From: Doug Kohlert <Doug.Kohlert_at_Sun.COM>
Date: Mon, 03 Jan 2005 09:22:11 -0800

When you generate the client, you should have your config.xml file point
at the deployed WSDL file. The JAXRPC servelet
replaces the "REPLACE_WITH_ACTUAL_URL" string with the proper addressed
based on where the endpoint is
deployed. You can also set the endpoint address programatically using
the call:

        stub._setProperty(
        javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,
        "the.actual.endpoint.address");

Narunjan Mandhan wrote:

>Hello.
>
>I have develop a small web service using jwsdp 1.4
>using jaxrpc (static stub)
>Sever is working fine but when I try to connect client
>with it. I get this message
>
>
>prepare:
>
>generate-client:
>
>edit-config:
>
>unedit-config:
>
>compile-client:
>
>run-client:
> [java] java.rmi.RemoteException:
>HTTP-Transportfehler: java.net.MalformedUR
>LException: no protocol: REPLACE_WITH_ACTUAL_URL;
>nested exception is:
> [java] HTTP-Transportfehler:
>java.net.MalformedURLException: no protoco
>l: REPLACE_WITH_ACTUAL_URL
> [java] at
>org.me.hi.HiSEI_Stub.sayHi(HiSEI_Stub.java:87)
> [java] at
>org.me.hi.HiClient.main(HiClient.java:10)
> [java] Caused by: HTTP-Transportfehler:
>java.net.MalformedURLException: no
>protocol: REPLACE_WITH_ACTUAL_URL
> [java] at
>com.sun.xml.rpc.client.http.HttpClientTransport.invoke(HttpCl
>ientTransport.java:140)
> [java] at
>com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.
>java:92)
> [java] at
>org.me.hi.HiSEI_Stub.sayHi(HiSEI_Stub.java:70)
> [java] ... 1 more
>
>BUILD SUCCESSFUL
>Total time: 3 minutes 15 seconds
>
>I did not get why client is unable to contact server.
>Any help in this regard would very appreciable.
>Thaks in advance
>
>
>
>
>
>__________________________________
>Do you Yahoo!?
>Meet the all-new My Yahoo! - Try it today!
>http://my.yahoo.com
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
>For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net