can you please have a look at http://www.wso2.net/kb/112
Andreas Wagner wrote: >Hello there, > >if if call "http://localhost:8080/axis2/services/CCWebServices?wsdl" to >get the .wsdl i get the default .wsdl but not my own modified .wsdl which >i deployed in my .aar file as described below. Any ideas? > >Thanks in advance, >Andy > >Here are my .aar file contents: > >META-INF/service.xml >--- ><serviceGroup> > <service name="CCWebServices"> > <description> > CC WebServices > </description> > <parameter name="ServiceClass" >locked="false">com.cc.webservices.CCWebServices</parameter> > <operation name="CCServerInformation"> > <messageReceiver >class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/> > <actionMapping>urn:CCServerInformation</actionMapping> > </operation> > </service> ></serviceGroup> >--- > >META-INF/CCWebServices.wsdl >--- ><wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" >xmlns:axis2="http://ws.apache.org/axis2" >xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" >xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" >xmlns:ns0="http://webservices.CC.com/xsd" >xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" >xmlns:ns1="http://org.apache.axis2/xsd" >xmlns:xs="http://www.w3.org/2001/XMLSchema" >xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" >targetNamespace="http://ws.apache.org/axis2"> > <wsdl:types> > <xs:schema xmlns:ns="http://webservices.cc.com/xsd" >targetNamespace="http://webservices.cc.com/xsd" >elementFormDefault="unqualified" attributeFormDefault="unqualified"> > <xs:element name="CCServerInformation"> > <xs:complexType> > <xs:sequence> > <xs:element type="xs:anyType" name="omRequest"/> > </xs:sequence> > </xs:complexType> > </xs:element> > <xs:element name="CCServerInformationResponse"> > <xs:complexType> > <xs:sequence> > <xs:element type="xs:String" name="DATE"/> > <xs:element type="xs:String" name="TIME"/> > <xs:element type="xs:String" name="DATE_TIME"/> > </xs:sequence> > </xs:complexType> > </xs:element> > </xs:schema> > </wsdl:types> > <wsdl:message name="CCServerInformationMessage"> > <wsdl:part element="ns0:CCServerInformation" name="part1"/> > </wsdl:message> > <wsdl:message name="CCServerInformationResponse"> > <wsdl:part element="ns0:CCServerInformationResponse" name="part1"/> > </wsdl:message> > <wsdl:portType name="CCWebServicesPortType"> > <wsdl:operation name="CCServerInformation"> > <wsdl:input message="axis2:CCServerInformationMessage"/> > <wsdl:output message="axis2:CCServerInformationResponse"/> > </wsdl:operation> > </wsdl:portType> > <wsdl:binding type="axis2:CCWebServicesPortType" >name="CCWebServicesSOAP11Binding"> > <soap:binding style="document" >transport="http://schemas.xmlsoap.org/soap/http"/> > <wsdl:operation name="CCServerInformation"> > <soap:operation style="document" soapAction="urn:CCServerInformation"/> > <wsdl:input> > <soap:body namespace="http://ws.apache.org/axis2" use="literal"/> > </wsdl:input> > <wsdl:output> > <soap:body namespace="http://ws.apache.org/axis2" use="literal"/> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > <wsdl:binding type="axis2:CCWebServicesPortType" >name="CCWebServicesSOAP12Binding"> > <soap12:binding style="document" >transport="http://schemas.xmlsoap.org/soap/http"/> > <wsdl:operation name="CCServerInformation"> > <soap12:operation style="document" >soapAction="urn:CCServerInformation"/> > <wsdl:input> > <soap12:body namespace="http://ws.apache.org/axis2" use="literal"/> > </wsdl:input> > <wsdl:output> > <soap12:body namespace="http://ws.apache.org/axis2" use="literal"/> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > <wsdl:binding type="axis2:CCWebServicesPortType" >name="CCWebServicesHttpBinding"> > <http:binding verb="POST"/> > <wsdl:operation name="CCServerInformation"> > <http:operation location="CCServerInformation"/> > <wsdl:input> > <mime:content type="text/xml"/> > </wsdl:input> > <wsdl:output> > <mime:content type="text/xml"/> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > <wsdl:service name="CCWebServices"> > <wsdl:port binding="axis2:CCWebServicesSOAP11Binding" >name="CCWebServicesSOAP11port0"> > <soap:address >location="http://localhost:8080/axis2/services/CCWebServices"/> > </wsdl:port> > <wsdl:port binding="axis2:CCWebServicesSOAP12Binding" >name="CCWebServicesSOAP12port0"> > <soap12:address >location="http://localhost:8080/axis2/services/CCWebServices"/> > </wsdl:port> > <wsdl:port binding="axis2:CCWebServicesHttpBinding" >name="CCServicesHttpport0"> > <http:address >location="http://localhost:8080/axis2/rest/CCWebServices"/> > </wsdl:port> > </wsdl:service> ></wsdl:definitions> >--- > >com/CC/webservices/CCWebServices.java >--- >package com.CC.webservices; > >import org.apache.axiom.om.OMElement; > >public class CCWebServices implements WebServiceConstants >{ > public OMElement CCServerInformation(OMElement omRequest) throws >Exception { > omRequest.build(); > omRequest.detach(); > > return omRequest; > } >} > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- Thanks, Deepal ................................................................ ~Future is Open~ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
