You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2006/11/12 08:13:37 UTC

svn commit: r473895 - in /webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom: resources/META-INF/StockQuoteService.wsdl src/samples/quickstart/service/axiom/StockQuoteService.java

Author: dims
Date: Sat Nov 11 23:13:36 2006
New Revision: 473895

URL: http://svn.apache.org/viewvc?view=rev&rev=473895
Log:
get axiom service working with adb/xmlbeans/axiom client

Modified:
    webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/resources/META-INF/StockQuoteService.wsdl
    webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/quickstart/service/axiom/StockQuoteService.java

Modified: webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/resources/META-INF/StockQuoteService.wsdl
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/resources/META-INF/StockQuoteService.wsdl?view=diff&rev=473895&r1=473894&r2=473895
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/resources/META-INF/StockQuoteService.wsdl (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/resources/META-INF/StockQuoteService.wsdl Sat Nov 11 23:13:36 2006
@@ -1,4 +1,4 @@
-<wsdl:definitions xmlns:axis2="http://StockQuoteService" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns="http://StockQuoteService/xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://StockQuoteService"><wsdl:types><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://StockQuoteService/xsd">
+<wsdl:definitions xmlns:axis2="http://quickstart.samples/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns="http://quickstart.samples/xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://quickstart.samples/"><wsdl:types><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://quickstart.samples/xsd">
 <xs:element name="getPrice">
 <xs:complexType>
 <xs:sequence>
@@ -21,4 +21,4 @@
 </xs:sequence>
 </xs:complexType>
 </xs:element>
-</xs:schema></wsdl:types><wsdl:message name="getPriceMessage"><wsdl:part name="part1" element="ns:getPrice" /></wsdl:message><wsdl:message name="getPriceResponseMessage"><wsdl:part name="part1" element="ns:getPriceResponse" /></wsdl:message><wsdl:message name="updateMessage"><wsdl:part name="part1" element="ns:update" /></wsdl:message><wsdl:portType name="StockQuoteServicePortType"><wsdl:operation name="getPrice"><wsdl:input message="axis2:getPriceMessage" /><wsdl:output message="axis2:getPriceResponseMessage" /></wsdl:operation><wsdl:operation name="update"><wsdl:input message="axis2:updateMessage" /></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" namespace="http://StockQuoteService" /></wsd
 l:input><wsdl:output><soap:body use="literal" namespace="http://StockQuoteService" /></wsdl:output></wsdl:operation><wsdl:operation name="update"><soap:operation soapAction="urn:update" style="document" /><wsdl:input><soap:body use="literal" namespace="http://StockQuoteService" /></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" namespace="http://StockQuoteService" /></wsdl:input><wsdl:output><soap12:body use="literal" namespace="http://StockQuoteService" /></wsdl:output></wsdl:operation><wsdl:operation name="update"><soap12:operation soapAction="urn:update" style="document" /><wsdl:input><soap12:body use="literal" namespace="http://StockQuoteService" /></wsdl:input></wsdl:ope
 ration></wsdl:binding><wsdl:service name="StockQuoteService"><wsdl:port name="StockQuoteServiceSOAP11port" binding="axis2:StockQuoteServiceSOAP11Binding"><soap:address location="http://localhost:8080/axis2/services/StockQuoteService" /></wsdl:port><wsdl:port name="StockQuoteServiceSOAP12port" binding="axis2:StockQuoteServiceSOAP12Binding"><soap12:address location="http://localhost:8080/axis2/services/StockQuoteService" /></wsdl:port></wsdl:service></wsdl:definitions>
\ No newline at end of file
+</xs:schema></wsdl:types><wsdl:message name="getPriceMessage"><wsdl:part name="part1" element="ns:getPrice" /></wsdl:message><wsdl:message name="getPriceResponseMessage"><wsdl:part name="part1" element="ns:getPriceResponse" /></wsdl:message><wsdl:message name="updateMessage"><wsdl:part name="part1" element="ns:update" /></wsdl:message><wsdl:portType name="StockQuoteServicePortType"><wsdl:operation name="getPrice"><wsdl:input message="axis2:getPriceMessage" /><wsdl:output message="axis2:getPriceResponseMessage" /></wsdl:operation><wsdl:operation name="update"><wsdl:input message="axis2:updateMessage" /></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" namespace="http://quickstart.samples/" /></w
 sdl:input><wsdl:output><soap:body use="literal" namespace="http://quickstart.samples/" /></wsdl:output></wsdl:operation><wsdl:operation name="update"><soap:operation soapAction="urn:update" style="document" /><wsdl:input><soap:body use="literal" namespace="http://quickstart.samples/" /></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" namespace="http://quickstart.samples/" /></wsdl:input><wsdl:output><soap12:body use="literal" namespace="http://quickstart.samples/" /></wsdl:output></wsdl:operation><wsdl:operation name="update"><soap12:operation soapAction="urn:update" style="document" /><wsdl:input><soap12:body use="literal" namespace="http://quickstart.samples/" /></wsdl:inpu
 t></wsdl:operation></wsdl:binding><wsdl:service name="StockQuoteService"><wsdl:port name="StockQuoteServiceSOAP11port" binding="axis2:StockQuoteServiceSOAP11Binding"><soap:address location="http://localhost:8080/axis2/services/StockQuoteService" /></wsdl:port><wsdl:port name="StockQuoteServiceSOAP12port" binding="axis2:StockQuoteServiceSOAP12Binding"><soap12:address location="http://localhost:8080/axis2/services/StockQuoteService" /></wsdl:port></wsdl:service></wsdl:definitions>
\ No newline at end of file

Modified: webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/quickstart/service/axiom/StockQuoteService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/quickstart/service/axiom/StockQuoteService.java?view=diff&rev=473895&r1=473894&r2=473895
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/quickstart/service/axiom/StockQuoteService.java (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/quickstart/service/axiom/StockQuoteService.java Sat Nov 11 23:13:36 2006
@@ -24,9 +24,9 @@
         }
         OMFactory fac = OMAbstractFactory.getOMFactory();
         OMNamespace omNs =
-            fac.createOMNamespace("http://quickstart.mypackage/xsd", "tns");
+            fac.createOMNamespace("http://quickstart.samples/xsd", "ns");
         OMElement method = fac.createOMElement("getPriceResponse", omNs);
-        OMElement value = fac.createOMElement("price", omNs);
+        OMElement value = fac.createOMElement("return", omNs);
         value.addChild(fac.createOMText(value, returnText));
         method.addChild(value);
         return method;



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org