Certainly. The file "axis2_wsdl.xml" is what I see when I click on my service from the Admin page in the browser. The other is what was generated from my service class, in eclipse (Java2WSDL). Below is the service class code. There should be no reference to "provideService" in the WSDL, since it does not exist. It did previously exist in an earlier version of this implementation, but I replaced it with "processData" as below, and generated a new wsdl from the new code/class. Very mysterious! It is as if Axis2 engine is "remembering" the old wsdl, and merging it with the wsdl I generated.
-------------------
public class TestService2 {
public String processData(String inputData) {
String dataFromCurrentService = "TestService2
reporting...";
String dataFromIncomingClient = inputData;
String compositeOutput = null;
System.out.println("TestService2 is started...attempting
to process incoming requests ");
try {
compositeOutput = dataFromCurrentService +
dataFromIncomingClient;
} catch (Exception e) {
e.printStackTrace();
}
return compositeOutput;
}
}
----------------------------------
Thanks,
Alan J
-----Original Message-----
From: Ajith Ranabahu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 16, 2006 2:19 PM
To: [email protected]
Subject: Re: [Axis2] Argument type mismatch, wsdl sorcery
Hi Alan,
I am not sure what you meant by 'a previous incarnation' ? perhaps you
could attach the two WSDLs ?
On 8/16/06, Jones, Alan R <[EMAIL PROTECTED]> wrote:
> Hi List,
>
> I have generated two services. The first one runs perfectly. The other
> which is very similar, throws the error below at the time of response.
> I cannot find where this is coming from, but I did see that when I
> generate the code from the WSDL2Java tool in Eclipse, it generates a
> bunch of related stubs from a previous incarnation of the service
> (Factory, etc), and when I look at the WSDL from the Axis2 admin
> interface (web browser) I see it contains a bunch of ops/messages from
> the previous incarnation also. However, when I look at the wsdl inside
> of eclipse, this is not the case.
>
> Questions:
> 1. How is it possible for the wsdl viewed in Axis2 admin to be
> different from the wsdl I generated in eclipse?
> 2. How is the gen tool creating all these factories/nested
> classes/methods in the stub that do not exist in the class?
> 3. Is there a relation between the above 2 issues and the error I am
> getting?
>
> Hope someone can provide insight...
>
>
> ------------------------
>
> rg.apache.axis2.AxisFault: argument type mismatch
> at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxi
> sO
> peration.java:287)
> at
> com.boeing.soa.ajtest.TestService2Stub.processData(TestService2Stub.ja
> va
> :106)
> at
> com.boeing.soa.ajtest.TestClient.runTestService2(TestClient.java:126)
> at com.boeing.soa.ajtest.TestClient.main(TestClient.java:53)
> Caused by: java.lang.Exception: org.apache.axis2.AxisFault: argument
> type mismatch
> at
> org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLo
> gi
> c(RawXMLINOutMessageReceiver.java:102)
> at
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(Ab
> st
> ractInOutSyncMessageReceiver.java:37)
> at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454)
> at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequ
> es
> t(HTTPTransportUtils.java:284)
> at
>
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
> at
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
> ca
> tionFilterChain.java:252)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
> lt
> erChain.java:173)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
> lv
> e.java:213)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
> lv
> e.java:178)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
> va
> :126)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
> va
> :105)
> at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
> java:107)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> :1
> 48)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
> 86
> 9)
> at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.pr
> oc
> essConnection(Http11BaseProtocol.java:664)
> at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoi
> nt
> .java:527)
> at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFoll
> ow
> erWorkerThread.java:80)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo
> ol
> .java:684)
> at java.lang.Thread.run(Thread.java:595)
>
>
>
> --------------------
>
> Thanks,
>
> Alan J
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Ajith Ranabahu
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns1="http://TestService2.ajtest.soa.boeing.com/types" xmlns:ns="http://TestService2.ajtest.soa.boeing.com" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://TestService2.ajtest.soa.boeing.com"> <wsdl:types> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:types="http://TestService2.ajtest.soa.boeing.com/types" targetNamespace="http://TestService2.ajtest.soa.boeing.com/types" elementFormDefault="unqualified" attributeFormDefault="unqualified"> <xs:element name="processData"> <xs:complexType> <xs:sequence> <xs:element type="xs:string" name="inputData" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="processDataResponse"> <xs:complexType> <xs:sequence> <xs:element type="xs:string" name="return" /> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> </wsdl:types> <wsdl:message name="provideServiceMessage" /> <wsdl:message name="provideServiceResponse" /> <wsdl:message name="processDataMessage"> <wsdl:part element="ns1:processData" name="part1" /> </wsdl:message> <wsdl:message name="processDataResponseMessage"> <wsdl:part element="ns1:processDataResponse" name="part1" /> </wsdl:message> <wsdl:portType name="TestService2PortType"> <wsdl:operation name="provideService"> <wsdl:input message="ns:provideServiceMessage" /> <wsdl:output message="ns:provideServiceResponse" /> </wsdl:operation> <wsdl:operation name="processData"> <wsdl:input message="ns:processDataMessage" /> <wsdl:output message="ns:processDataResponseMessage" /> </wsdl:operation> </wsdl:portType> <wsdl:binding type="ns:TestService2PortType" name="TestService2SOAP11Binding"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> <wsdl:operation name="provideService"> <soap:operation style="document" soapAction="urn:provideService" /> <wsdl:input> <soap:body namespace="http://TestService2.ajtest.soa.boeing.com" use="literal" /> </wsdl:input> <wsdl:output> <soap:body namespace="http://TestService2.ajtest.soa.boeing.com" use="literal" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="processData"> <soap:operation style="document" soapAction="urn:processData" /> <wsdl:input> <soap:body namespace="http://TestService2.ajtest.soa.boeing.com" use="literal" /> </wsdl:input> <wsdl:output> <soap:body namespace="http://TestService2.ajtest.soa.boeing.com" use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding type="ns:TestService2PortType" name="TestService2SOAP12Binding"> <soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> <wsdl:operation name="provideService"> <soap12:operation style="document" soapAction="urn:provideService" /> <wsdl:input> <soap12:body namespace="http://TestService2.ajtest.soa.boeing.com" use="literal" /> </wsdl:input> <wsdl:output> <soap12:body namespace="http://TestService2.ajtest.soa.boeing.com" use="literal" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="processData"> <soap12:operation style="document" soapAction="urn:processData" /> <wsdl:input> <soap12:body namespace="http://TestService2.ajtest.soa.boeing.com" use="literal" /> </wsdl:input> <wsdl:output> <soap12:body namespace="http://TestService2.ajtest.soa.boeing.com" use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding type="ns:TestService2PortType" name="TestService2HttpBinding"> <http:binding verb="POST" /> <wsdl:operation name="provideService"> <http:operation location="provideService" /> <wsdl:input> <mime:content type="text/xml" /> </wsdl:input> <wsdl:output> <mime:content type="text/xml" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="processData"> <http:operation location="processData" /> <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="TestService2"> <wsdl:port binding="ns:TestService2SOAP11Binding" name="TestService2SOAP11port0"> <soap:address location="http://localhost:8080/axis2/services/TestService2" /> </wsdl:port> <wsdl:port binding="ns:TestService2SOAP12Binding" name="TestService2SOAP12port0"> <soap12:address location="http://localhost:8080/axis2/services/TestService2" /> </wsdl:port> <wsdl:port binding="ns:TestService2HttpBinding" name="TestService2Httpport0"> <http:address location="http://localhost:8080/axis2/rest/TestService2" /> </wsdl:port> </wsdl:service> </wsdl:definitions>
services2.wsdl
Description: services2.wsdl
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
