[JBossWS] - tool support for Stub based client programming model
by mnsharif
I have successfuly deployed a web service and i can see the WSDL file thru the http://localhost:8080/rpcStyle/SampleService?wsdl URL.
But when i went thru the documentation about consuming web services (getting started with jboss4.0, jboss AS guide, jbossWS user guide), the impression that i gathered was that the prefered way to consume web services is by running application client on jboss. But still there are certain scenarios where a client would be a standalone java client.
Before trying web services on jboss, i have deployed web services on tomcat using JWSDP and there i used a standalone java client based on stubs generated from published WSDL file to consume the web services. But i cudnt find a single such example (where client stub is generated) in above mentioned jboss docs. So, can somebody provide me a link or simple howTo of client stub generation using jboss specific tools (wstools or whatever)?
Secondly, is there any documentation available on wstools ant task? I mean, just a simple doc listing all attributes and their semantics.
Thanks for yor time all!
PS: I am using the following:
jboss-4.0.4.GA
jbossws (and not jbossws14 which is default in 4.0.4)
JDK 1.5
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984666#3984666
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984666
18 years, 1 month
[JBossWS] - Re: jaxrpc interop
by zurchman
"thomas.diesler(a)jboss.com" wrote : This is fixed in jbossws-1.0.3.SP1
Or maybe not.
I'm seeing the same behavior with 1.0.3.SP1
Do I have to change jboss-xml-binding.jar with this release?
| 2006-11-09 14:02:01,181 DEBUG [org.jboss.ws.server.StandardEndpointServlet] doPost: /jbossws-samples-rpcstyle
| 2006-11-09 14:02:01,181 DEBUG [org.jboss.ws.soap.MessageContextAssociation] pushMessageContext: org.jboss.ws.soap.SOAPMessageContextImpl@5579a1
| 2006-11-09 14:02:01,182 DEBUG [org.jboss.ws.server.ServiceEndpoint] BEGIN handleRequest: jboss.ws:context=jbossws-samples-rpcstyle,endpoint=TrivialEndpoint
| 2006-11-09 14:02:01,183 DEBUG [org.jboss.ws.soap.MessageFactoryImpl] createMessage: [contentType=text/xml]
| 2006-11-09 14:02:01,185 DEBUG [org.jboss.ws.soap.SOAPContentElement] setXMLFragment: <String_1>Kermit</String_1>
| 2006-11-09 14:02:01,185 DEBUG [org.jboss.ws.soap.SOAPContentElement] setXMLFragment: <String_2>Ferrari</String_2>
| 2006-11-09 14:02:01,185 DEBUG [jbossws.SOAPMessage] Incomming SOAPMessage
|
| <SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'>
| <SOAP-ENV:Header/>
| <SOAP-ENV:Body>
| <purchase>
| <String_1>Kermit</String_1>
| <String_2>Ferrari</String_2>
| </purchase>
| </SOAP-ENV:Body>
| </SOAP-ENV:Envelope>
|
| 2006-11-09 14:02:01,186 DEBUG [org.jboss.ws.soap.SOAPMessageDispatcher] getDispatchDestination: null
| 2006-11-09 14:02:01,186 DEBUG [org.jboss.ws.soap.SOAPMessageDispatcher] getDispatchDestination: null
| 2006-11-09 14:02:01,189 DEBUG [javax.xml.rpc.soap.SOAPFaultException] new SOAPFaultException [code={http://schemas.xmlsoap.org/soap/envelope/}Client,string=Endpoint {http://org.jboss.ws/samples/rpcstyle}TrivialServicePort does not contain operation meta data for: purchase,actor=null,detail=null]
| 2006-11-09 14:02:01,196 ERROR [org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper] SOAP request exception
| javax.xml.rpc.soap.SOAPFaultException: Endpoint {http://org.jboss.ws/samples/rpcstyle}TrivialServicePort does not contain operation meta data for: purchase
| at org.jboss.ws.server.ServiceEndpointInvoker.getDispatchDestination
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984633#3984633
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984633
18 years, 1 month
[JBossWS] - Basic J2EE 1.4 tutorial sample not working.
by Zgluteks
Hi!
I currently trying to make webservices using the "standard" libraries. Our company make webapps, focusing on customers still using J2EE 1.4 app servers, but of course we'd like our apps to work on EE 1.5 app servers too.
Anyway, I just downloaded J2EE 1.4 and the tutorial and did everything described on this page: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXRPC3.html
It produces a .war file, that I put on JBoss AS' "deploy" directory.
Then I continued the tutorial, trying to make a simple client communicate with the service I deployed. Unfortunatelly it didn't work, with this resulting error:
run-client:
| [java] Endpoint address = http://localhost:8080/hello-jaxrpc/hello
| [java] java.rmi.RemoteException: Runtime exception; nested exception is:
| [java] Style de codage inattendu : attendu = http://schemas.xmlsoap.org/soap/encoding/, réel =
| [java] at com.sun.xml.rpc.client.StreamingSender._handleRuntimeExceptionInSend(StreamingSender.java:331)
| [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:313)
| [java] at staticstub.HelloIF_Stub.sayHello(HelloIF_Stub.java:70)
| [java] at staticstub.HelloClient.main(Unknown Source)
| [java] Caused by: Style de codage inattendu : attendu = http://schemas.xmlsoap.org/soap/encoding/, réel =
| [java] at com.sun.xml.rpc.encoding.SOAPDeserializationContext.verifyEncodingStyle(SOAPDeserializationContext.java:168)
| [java] at com.sun.xml.rpc.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBase.java:175)
| [java] at com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.deserialize(ReferenceableSerializerImpl.java:155)
| [java] at staticstub.HelloIF_Stub._deserialize_sayHello(HelloIF_Stub.java:118)
| [java] at staticstub.HelloIF_Stub._readFirstBodyElement(HelloIF_Stub.java:105)
| [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:228)
| [java] ... 2 more
What could be the problem?
Thank you very much for your help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984605#3984605
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984605
18 years, 1 month
[JBossWS] - NullPointerException which generating the WSDL file using ws
by tapeshag
Hello,
I am trying to generate the descriptiors using the wstools. When I try to run it with my config file, I get the following error
---------------------------------------------------------
Exception in thread "main" java.lang.NullPointerException
at org.jboss.ws.tools.JavaToWSDL.generate(JavaToWSDL.java:303)
at org.jboss.ws.tools.helpers.ToolsHelper.handleJavaToWSDLGeneration(ToolsHelper.java:122)
at org.jboss.ws.tools.WSTools.process(WSTools.java:132)
at org.jboss.ws.tools.WSTools.generate(WSTools.java:120)
at org.jboss.ws.tools.WSTools.main(WSTools.java:61)
---------------------------------------------------------------
I am using wstools which gets shipped default with JBOSS-4.0.4GA release.
Attaching the contents of the interface and config files
wstools-config.xml
=============
<java-wsdl>
<namespaces target-namespace="http://hello.ws.jboss.org/"
type-namespace="http://hello.ws.jboss.org/types"/>
<webservices servlet-link="TrivialEndPointJSE"/>
</java-wsdl>
TrivialServiceInterface.java
====================
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface TrivialServiceInterface extends Remote
{
String purchase (String person) throws RemoteException;
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984540#3984540
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984540
18 years, 1 month