users@glassfish.java.net

Re: Creating JAX-WS Webservices in Glass Fish

From: narayana rallabandi <Narayana.Rallabandi_at_Sun.COM>
Date: Wed, 17 Jun 2009 11:03:48 +0530

Did you try building the WS from NetBeans ?


glassfish_at_javadesktop.org wrote:
> Hi All
>
> I am new to Glass fish. i am planning to develop a simple web service in Glass Fish. i have tried with JAX-WS. but the problem is i am not not able to see the exact names of input params in wsdl, Say web method is public String get Name(String [u][b]MyName[/b][/u]), i am expecting the WSDl to show Input as MY name rather than param1. i was not able to set any kind of style here and i think this is causing problem.
>
> Any kind of help is greatly appreciated
>
> Thank YOU
> [u][b]generated wsdl:[/b][/u]
>
>
>
>
> −
> <!--
> Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.3.1-hudson-749-SNAPSHOT.
> -->
> −
> <!--
> Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.3.1-hudson-749-SNAPSHOT.
> -->
> −
> <definitions targetNamespace="http://impl.service/" name="mywsService">
> −
> <types>
> −
> <xsd:schema>
> <xsd:import namespace="http://impl.service/" schemaLocation="http://3.212.219.217:8080/ws/mywsService?xsd=1"/>
> </xsd:schema>
> </types>
> −
> <message name="hisws">
> <part name="parameters" element="tns:hisws"/>
> </message>
> −
> <message name="hiswsResponse">
> <part name="parameters" element="tns:hiswsResponse"/>
> </message>
> −
> <portType name="myws">
> −
> <operation name="hisws">
> <input message="tns:hisws"/>
> <output message="tns:hiswsResponse"/>
> </operation>
> </portType>
> −
> <binding name="mywsPortBinding" type="tns:myws">
> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
> −
> <operation name="hisws">
> <soap:operation soapAction=""/>
> −
> <input>
> <soap:body use="literal"/>
> </input>
> −
> <output>
> <soap:body use="literal"/>
> </output>
> </operation>
> </binding>
> −
> <service name="mywsService">
> −
> <port name="mywsPort" binding="tns:mywsPortBinding">
> <soap:address location="http://3.212.219.217:8080/ws/mywsService"/>
> </port>
> </service>
> </definitions>
> [Message sent by forum member 'jc_vamseekrishna' (jc_vamseekrishna)]
>
> http://forums.java.net/jive/thread.jspa?messageID=351552
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>