ode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph M. Pflügler (JIRA) <j...@apache.org>
Subject [jira] Created: (ODE-301) Problem calling WebService generated from WSDL and deployed in ODE's AXIS2 instance
Date Tue, 10 Jun 2008 17:10:45 GMT
Problem calling WebService generated from WSDL and deployed in ODE's AXIS2 instance
-----------------------------------------------------------------------------------

                 Key: ODE-301
                 URL: https://issues.apache.org/jira/browse/ODE-301
             Project: ODE
          Issue Type: Bug
          Components: Axis2 Integration
    Affects Versions: 1.2
         Environment: Ubuntu 8.04, JavaSE 1.5.0_15, Tomcat 6.0.16, Axis2 1.4
            Reporter: Christoph M. Pflügler
            Priority: Minor


A problem encountered (see error message below) when trying to call a WebService (.aar) generated
from a WSDL using WSDL2Java (and the ant file generated by WSDL2Java). The WebService was
 deployed in the Axis2 instance that ODE relies on. The error occurs even though the Webservice
is listed as available service. The same WebService works perfectly when deployed in a separate
Axis2 webapp.

In contrast, a simple WebService with an auto-generated WSDL also worked in ODE's Axis2 instance.

#### Error ####
org.apache.axis2.AxisFault: The endpoint reference (EPR) for the
Operation not found is
http://192.168.1.101:8080/ode/processes/quotationService and the WSA
Action =
	at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)
	at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
	at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
	at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
	at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
	at
quotationservice.test.QuotationServiceStub.getQuotation(QuotationServiceStub.java:183)
	at test.TestMain.main(TestMain.java:55)


#### WSDL ####
<wsdl:definitions
xmlns:pos="orchestration:test:quotationService"
xmlns:docs="orchestration:test:docs"
xmlns:BD_3A1_RequestQuote="urn:oasis:names:specification:ubl:schema:xsd:RequestForQuotation-2"
xmlns:BD_3A1_Quote="urn:oasis:names:specification:ubl:schema:xsd:Quotation-2"
xmlns:BD_3A10_NotifyOfQuoteAck="http://www.example.org/MY_NotifyOfQuoteAck"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
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="orchestration:test:quotationService">

<wsdl:types>
      <xs:schema xmlns:ns="orchestration:test:seller" attributeFormDefault="qualified"
                 elementFormDefault="qualified"
                 targetNamespace="orchestration:test:docs">
		 <xs:import namespace="urn:oasis:names:specification:ubl:schema:xsd:RequestForQuotation-2"
					schemaLocation="UBL-RequestForQuotation-2.0.xsd" />
		<xs:import namespace="urn:oasis:names:specification:ubl:schema:xsd:Quotation-2"
					schemaLocation="UBL-Quotation-2.0.xsd" />
		<xs:import namespace="http://www.example.org/MY_NotifyOfQuoteAck"
					schemaLocation="MY_NotifyOfQuoteAck.xsd" />
		<xs:element name="RequestForQuotationMSG">
			<xs:complexType>
				<xs:sequence>
					<xs:element ref="BD_3A1_RequestQuote:RequestForQuotation"/>
					<xs:element name="hasLegalIntent" type="xs:boolean" fixed="true" />
				</xs:sequence>
			</xs:complexType>
		</xs:element>
		
		<xs:element name="QuotationMSG">
			<xs:complexType>
				<xs:sequence>
					<xs:element ref="BD_3A1_Quote:Quotation"/>
					<xs:element name="hasLegalIntent" type="xs:boolean" fixed="true" />
				</xs:sequence>
			</xs:complexType>
		</xs:element>
      </xs:schema>
</wsdl:types>

<wsdl:message name="requestForQuotation">
	<wsdl:part name="in" element="docs:RequestForQuotationMSG"/>
</wsdl:message>

<wsdl:message name="quotation">
	<wsdl:part name="in" element="docs:QuotationMSG"/>
</wsdl:message>

<wsdl:portType name="quotationPT">
	<wsdl:operation name="getQuotation">
		<wsdl:input message="pos:requestForQuotation"/>
		<wsdl:output message="pos:quotation"/>
	</wsdl:operation>
</wsdl:portType>

<wsdl:binding name="quotationBinding" type="pos:quotationPT">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="getQuotation">
            <soap:operation soapAction="" style="document"/>
            <wsdl:input>
                <soap:body
                    namespace="orchestration:test"
                    use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body
                    namespace="orchestration:test"
                    use="literal"/>
            </wsdl:output>
        </wsdl:operation>
</wsdl:binding>

<wsdl:service name="quotationService">
		<wsdl:port name="quotationPort" binding="pos:quotationBinding">
			<!-- 
				to run this service in Axis2 the follwing soap:address was used
				<soap:address location="http://localhost:8080/axis2/services/quotationService"/>
				I tried this one in ODE as well, but again without success
			 -->
     		<soap:address location="http://localhost:8080/ode/processes/quotationService"/>
		</wsdl:port>
</wsdl:service>

</wsdl:definitions>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message