[JBossWS] - Re: Specifying the server's URL in the client?
by EricJava
No one has any ideas on this?
Right now it looks like my options are either a) the client must fetch the WSDL every single time it makes a request, or b) the server's URL must be hard-coded in the WSDL file that is bundled with the client.
Neither of these are good. There's no reason at all for the client to keep on fetching the WSDL. If the WSDL were to change, the client wouldn't be able to work with it, because it wouldn't be able to process the interaction. So there's really no point in a client fetching the WSDL. But I don't want to hard-code the server URL in the bundled WSDL either.
Did Sun just not think of this? Imagine a client which makes frequent requests, like a chat client for example. This might make requests once per second or more. Did they really think that it would be good to keep on fetching the same WSDL over the net, once per second, when that file can never even change? The bandwidth on this hypothetical chat client would consist about 99% of the same WSDL transmitted over and over, and about 1% actual data.
I must be missing something. Can this possibly be correct?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128603#4128603
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128603
16 years, 10 months
[JBossWS] - Web Service Client Exception
by scitmon
Using Jboss 4.2.2GA to host my webservice and the wsconsume tool in the server bin folder, I've been getting the following Exception:
Exception in thread "Main Thread" java.lang.NoSuchMethodError: newInstance
at com.sun.xml.ws.api.SOAPVersion.(SOAPVersion.java:163)
at com.sun.xml.ws.api.SOAPVersion.(SOAPVersion.java:68)
at com.sun.xml.ws.api.BindingID.(BindingID.java:304)
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseBinding(RuntimeWSDLParser.java:398)
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseWSDL(RuntimeWSDLParser.java:295)
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:124)
at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:226)
at com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:189)
at com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:159)
at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:81)
at javax.xml.ws.Service.(Service.java:56)
at javax.xml.ws.Service.create(Service.java:680)
at com.lbsltd.webservice.WSClient.main(WSClient.java:34)
when running the following code:
| try
| {
| URL wsdlLocation = new URL("http://localhost:8080/DummyWS/DummyWS?wsdl");
| QName serviceName = new QName("http://localhost:8080/DummyWS/DummyWS", "DummyWSService");
| service = Service.create(wsdlLocation, serviceName);
| }
| catch (MalformedURLException e)
| {
| e.printStackTrace();
| }
|
the exception is thrown at the "Service.create" line
i also tried the wsconsume generated service which produced the same result when i came to create an instance of the service.
can somebody enlighten me as to what this exception is about?
many thanks
Scotty
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128449#4128449
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128449
16 years, 10 months
[JBossWS] - Re: SOAP with Attachment in JBoss 4.0.4 GA
by sarin_ashish
I am getting exception when I follow whats mentioned in the User Guide:
2008-02-11 21:45:59,854 DEBUG [org.jboss.ws.jaxrpc.encoding.JAXBSerializer] serialize: [xmlName=result,xmlType={http://org.jboss.ws/reports/rpcstyle/types}FileAttachment]
2008-02-11 21:45:59,854 ERROR [org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper] SOAP request exception
javax.xml.rpc.JAXRPCException: Cannot create or send response message
at org.jboss.ws.server.ServiceEndpoint.postProcessResponse(ServiceEndpoint.java:311)
at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:236)
at org.jboss.ws.server.ServiceEndpointServlet.doPost(ServiceEndpointServlet.java:120)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
Is there any example available which shows how in JBoss 4.0.4 attachments are received on the client side ?
thanks
Ashish
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128422#4128422
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128422
16 years, 10 months