I've been trying to get info on wsconsume and it appears the wiki is the only place. Does anyone know how to turn off or control the naming of _Exception in client generated code using this tool? Also, this tool creates MyException_Exception as well as MyException in the client generated code. Without diving into the source of how wsconsume works, can someone point me toward documentation explaining this ... configuration???
Thanks. Carlo.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082225#4082225
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082225
I'm not using any tools, this one is created by hand (WSDL file) and used wsconsume to generate stubs and have my server side in .NET.
What you can do is follow this guide and examples.
Also Jbossws stack binary (seperate download is avaialble) have some examples in it in tools directory i think, that will give you clues as well
http://labs.jboss.com/jbossws/docs/jaxws_userguide-2.0/index.html
You should firt try to create an implementation and don't worry about ant target yet just create an exploded war file (like test.war directory) under deploy directoty and put yr pojo based class as SEI and declare it as servlet
in web.xml file for that war.
Use the JAX -ws user guide mentioned above
and look at some steps described here for directory structure and deploy.
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBWS181HelloWorld
dont create yr service/class file using this as this is not using annotations.
Use the user guide examples for that
I hope this helps.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082110#4082110
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082110
I thnk by the look of it , the iisue is how yr mthod name and inpout raument name are different.
According to new spech JSr-224 which is what is used for these tools, yr method name should be same as input arguement name.
Please read the spec and you will discover more, new spec is very pedantic about these conventions.
I have enclosed a WSDL for Doc/Lit wraped style of service to give you hints, this works with Wsconsume
| <?xml version="1.0" encoding="UTF-8"?>
| <wsdl:definitions name="matt_HelloWorld3"
| targetNamespace="http://www.superpartners.com.au/matt.HelloWorld3"
| xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
| xmlns:xsd="http://www.w3.org/2001/XMLSchema"
| xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
| xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
| xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
| xmlns:tns="http://www.superpartners.com.au/matt.HelloWorld3">
| <wsdl:types>
|
| <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
| targetNamespace="http://www.superpartners.com.au/matt.HelloWorld3"
| xmlns:edm="http://www.superpartners.com.au/matt.HelloWorld3">
|
| <xsd:element name="HelloWorld" type="edm:HelloWorldReq" />
|
| <xsd:complexType name="HelloWorldReq">
| <xsd:sequence>
| <xsd:element minOccurs='0' name='id'
| type='xsd:string' />
| </xsd:sequence>
| </xsd:complexType>
|
| <xsd:element name="HelloWorldResponse"
| type="edm:HelloWorldRespons" />
|
| <xsd:complexType name="HelloWorldRespons">
| <xsd:sequence>
| <xsd:element minOccurs='0' name='result'
| type='xsd:string' />
| </xsd:sequence>
| </xsd:complexType>
| </xsd:schema>
|
| </wsdl:types>
|
| <wsdl:message name="HelloWorldIn">
| <wsdl:part name="HelloWorld" element="tns:HelloWorld" />
| </wsdl:message>
|
| <wsdl:message name="HelloWorldOutput">
| <wsdl:part name="HelloWorldResponse"
| element="tns:HelloWorldResponse" />
| </wsdl:message>
|
| <wsdl:portType name="matt_HelloWorld3PortType">
| <wsdl:operation name="HelloWorld">
| <wsdl:input message="tns:HelloWorldIn" />
| <wsdl:output message="tns:HelloWorldOutput" />
| </wsdl:operation>
| </wsdl:portType>
|
| <wsdl:binding name="matt_HelloWorld3Binding"
| type="tns:matt_HelloWorld3PortType">
| <soap:binding style="document"
| transport="http://schemas.xmlsoap.org/soap/http" />
| <wsdl:operation name="HelloWorld">
| <soap:operation soapAction="" />
| <wsdl:input>
| <soap:body use="literal" />
| </wsdl:input>
| <wsdl:output>
| <soap:body use="literal" />
| </wsdl:output>
| </wsdl:operation>
| </wsdl:binding>
|
| <wsdl:service name="matt_HelloWorld3Service">
| <wsdl:port name="matt_HelloWorld3Port0"
| binding="tns:matt_HelloWorld3Binding">
| <soap:address
| location="http://spthd01:5565/soap/DocLiteral" />
| </wsdl:port>
| </wsdl:service>
| </wsdl:definitions>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081933#4081933
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4081933