Hi OK ... New in here
Googled the web ... Not satisfying Answer Is RPC-Client the Only way to make use of Stubs based java files for processing the data off hosted WSDL ??? With regards karthik ________________________________ From: Martin Gainty [mailto:[email protected]] Sent: Wednesday, September 22, 2010 5:27 PM To: [email protected]; [email protected] Subject: RE: need to built a NON-RPC Client From the generated java replace all instances of attribute-"value" with attribute="value" afterwards the parser will be able to parse style="document" Martin Gainty ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. ________________________________ From: [email protected] To: [email protected] Date: Wed, 22 Sep 2010 11:11:21 +0530 Subject: need to built a NON-RPC Client From the generated java Hi Spec : O/s Linux / Windows 2000 JDK : 1.5 AXIS2 :1.5 APPSERVER : JBOSS 4.2.1 I have the WSLD generated for "StockQuoteService" as below I also generated the Client side stub java code using WSDL2Java Question 1) I need to built a NON-RPC Client From the generated java code How? 2) Is it possible by Observing the WSDL provided by 3rd party to zero-in the client object and methods to access the data ? 3) Where should I start [ Axis2 /1 Site never goes beyond WSDL2Java on how to initiate /recognise client for NON-RPC Client ] WSDL for 'StockQuoteService' <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:axis2="http://quickstart.samples/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://quickstart.samples/xsd" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://quickstart.samples/"> <wsdl:documentation>StockQuoteService</wsdl:documentation> <wsdl:types> <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://quickstart.samples/xsd"> <xs:element name="update"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="symbol" nillable="true" type="xs:string"/> <xs:element minOccurs="0" name="price" type="xs:double"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="getPrice"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="symbol" nillable="true" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="getPriceResponse"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="return" type="xs:double"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> </wsdl:types> <wsdl:message name="getPriceRequest"> <wsdl:part name="parameters" element="ns:getPrice"/> </wsdl:message> <wsdl:message name="getPriceResponse"> <wsdl:part name="parameters" element="ns:getPriceResponse"/> </wsdl:message> <wsdl:message name="updateRequest"> <wsdl:part name="parameters" element="ns:update"/> </wsdl:message> <wsdl:portType name="StockQuoteServicePortType"> <wsdl:operation name="getPrice"> <wsdl:input message="axis2:getPriceRequest" wsaw:Action="urn:getPrice"/> <wsdl:output message="axis2:getPriceResponse" wsaw:Action="urn:getPriceResponse"/> </wsdl:operation> <wsdl:operation name="update"> <wsdl:input message="axis2:updateRequest" wsaw:Action="urn:update"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="StockQuoteServiceSoap11Binding" type="axis2:StockQuoteServicePortType"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> <wsdl:operation name="getPrice"> <soap:operation soapAction="urn:getPrice" style="document"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="update"> <soap:operation soapAction="urn:update" style="document"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> </wsdl:operation> </wsdl:binding> <wsdl:binding name="StockQuoteServiceSoap12Binding" type="axis2:StockQuoteServicePortType"> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> <wsdl:operation name="getPrice"> <soap12:operation soapAction="urn:getPrice" style="document"/> <wsdl:input> <soap12:body use="literal"/> </wsdl:input> <wsdl:output> <soap12:body use="literal"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="update"> <soap12:operation soapAction="urn:update" style="document"/> <wsdl:input> <soap12:body use="literal"/> </wsdl:input> </wsdl:operation> </wsdl:binding> <wsdl:binding name="StockQuoteServiceHttpBinding" type="axis2:StockQuoteServicePortType"> <http:binding verb="POST"/> <wsdl:operation name="getPrice"> <http:operation location="StockQuoteService/getPrice"/> <wsdl:input> <mime:content type="text/xml" part="getPrice"/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="getPrice"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="update"> <http:operation location="StockQuoteService/update"/> <wsdl:input> <mime:content type="text/xml" part="update"/> </wsdl:input> </wsdl:operation> </wsdl:binding> <wsdl:service name="StockQuoteService"> <wsdl:port name="StockQuoteServiceHttpSoap11Endpoint" binding="axis2:StockQuoteServiceSoap11Binding"> <soap:address location="http://10.10.21.170:8081/AXIS215/services/StockQuoteService.StockQuoteServiceHttpSoap11Endpoint/"/> </wsdl:port> <wsdl:port name="StockQuoteServiceTcpSoap11Endpoint" binding="axis2:StockQuoteServiceSoap11Binding"> <soap:address location="tcp://10.10.21.170:6061/axis2/services/StockQuoteService.StockQuoteServiceTcpSoap11Endpoint"/> </wsdl:port> <wsdl:port name="StockQuoteServiceTcpSoap12Endpoint" binding="axis2:StockQuoteServiceSoap12Binding"> <soap12:address location="tcp://10.10.21.170:6061/axis2/services/StockQuoteService.StockQuoteServiceTcpSoap12Endpoint"/> </wsdl:port> <wsdl:port name="StockQuoteServiceHttpSoap12Endpoint" binding="axis2:StockQuoteServiceSoap12Binding"> <soap12:address location="http://10.10.21.170:8081/AXIS215/services/StockQuoteService.StockQuoteServiceHttpSoap12Endpoint/"/> </wsdl:port> <wsdl:port name="StockQuoteServiceHttpEndpoint" binding="axis2:StockQuoteServiceHttpBinding"> <http:address location="http://10.10.21.170:8081/AXIS215/services/StockQuoteService.StockQuoteServiceHttpEndpoint/"/> </wsdl:port> </wsdl:service> </wsdl:definitions> with regards N.S.Karthik
