All,
I am attempting to use XFire as a Web Service Client, where the communication
protocol is JMS. The exception I get is the following:
Exception in thread "main" org.codehaus.xfire.XFireRuntimeException: Could not
find transport for binding
http://www.tibco.com/namespaces/ws/2004/soap/binding/JMS
<http://www.tibco.com/namespaces/ws/2004/soap/binding/JMS>
at
org.codehaus.xfire.client.XFireProxyFactory.create(XFireProxyFactory.java:141)
at
com.example.xmlns._1172758360539.asyncoperationimpl.AsyncWebServiceClient.getEndpoint(AsyncWebServiceClient.java:35)
at
com.example.xmlns._1172758360539.asyncoperationimpl.AsyncWebServiceClient.getEndpoint(AsyncWebServiceClient.java:46)
at
com.example.xmlns._1172758360539.asyncoperationimpl.AsyncWebServiceClient.getAsyncWebServiceJMSPort(AsyncWebServiceClient.java:69)
at com.circuitcity.rtvdemo.RtvDemo.main(RtvDemo.java:22)
Here is the WSDL source:
<?xml version="1.0" encoding="UTF-8"?>
<!--Created by TIBCO WSDL-->
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/
<http://schemas.xmlsoap.org/wsdl/> "
xmlns:tns="http://xmlns.example.com/1172758360539/AsyncOperationImpl
<http://xmlns.example.com/1172758360539/AsyncOperationImpl> "
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/
<http://schemas.xmlsoap.org/wsdl/soap/> "
xmlns:jms="http://www.tibco.com/namespaces/ws/2004/soap/binding/JMS
<http://www.tibco.com/namespaces/ws/2004/soap/binding/JMS> "
xmlns:jndi="http://www.tibco.com/namespaces/ws/2004/soap/apis/jndi
<http://www.tibco.com/namespaces/ws/2004/soap/apis/jndi> "
xmlns:ns0="http://www.circuitcity.com/uploadDemo
<http://www.circuitcity.com/uploadDemo> " name="Untitled"
targetNamespace="http://xmlns.example.com/1172758360539/AsyncOperationImpl
<http://xmlns.example.com/1172758360539/AsyncOperationImpl> ">
<wsdl:types>
<xs:schema xmlns="http://www.circuitcity.com/uploadDemo
<http://www.circuitcity.com/uploadDemo> "
xmlns:xs="http://www.w3.org/2001/XMLSchema <http://www.w3.org/2001/XMLSchema> "
xmlns:attach="http://ws-i.org/profiles/basic/1.1/xsd
<http://ws-i.org/profiles/basic/1.1/xsd> "
targetNamespace="http://www.circuitcity.com/uploadDemo
<http://www.circuitcity.com/uploadDemo> " elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:element name="additionalCharge">
<xs:complexType>
<xs:sequence>
<xs:element ref="ns0:code" minOccurs="0"/>
<xs:element ref="ns0:cost" minOccurs="0"/>
<xs:element ref="ns0:extendedCost" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="brand" type="xs:string"/>
<xs:element name="cmCost">
<xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:totalDigits value="11"/>
<xs:fractionDigits value="2"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="cmDate" type="xs:string"/>
<xs:element name="cmExtCost">
<xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:totalDigits value="11"/>
<xs:fractionDigits value="2"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="cmNumber" type="xs:string"/>
<xs:element name="cmQuantity" type="xs:decimal"/>
<xs:element name="code" type="xs:string"/>
<xs:element name="cost">
<xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:totalDigits value="11"/>
<xs:fractionDigits value="2"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="defTag" type="xs:string"/>
<xs:element name="extendedCost">
<xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:totalDigits value="11"/>
<xs:fractionDigits value="2"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="fileName" type="xs:string"/>
<xs:element name="model" type="xs:string"/>
<xs:element name="qtyReasonCode" type="xs:string"/>
<xs:element name="row">
<xs:complexType>
<xs:sequence>
<xs:element ref="ns0:vendorNumber" minOccurs="0"/>
<xs:element ref="ns0:rtvNumber" minOccurs="0"/>
<xs:element ref="ns0:brand" minOccurs="0"/>
<xs:element ref="ns0:model" minOccurs="0"/>
<xs:element ref="ns0:rtvQuantity" minOccurs="0"/>
<xs:element ref="ns0:rtvCost" minOccurs="0"/>
<xs:element ref="ns0:rtvExtCost" minOccurs="0"/>
<xs:element ref="ns0:cmNumber" minOccurs="0"/>
<xs:element ref="ns0:cmDate" minOccurs="0"/>
<xs:element ref="ns0:cmQuantity" minOccurs="0"/>
<xs:element ref="ns0:cmCost" minOccurs="0"/>
<xs:element ref="ns0:cmExtCost" minOccurs="0"/>
<xs:element ref="ns0:unitOverShort" minOccurs="0"/>
<xs:element ref="ns0:qtyReasonCode" minOccurs="0"/>
<xs:element ref="ns0:defTag" minOccurs="0"/>
<xs:element ref="ns0:additionalCharge" minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="number" type="xs:integer"/>
</xs:complexType>
</xs:element>
<xs:element name="rtvCost">
<xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:totalDigits value="11"/>
<xs:fractionDigits value="2"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="rtvExtCost">
<xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:totalDigits value="11"/>
<xs:fractionDigits value="2"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="rtvNumber">
<xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:totalDigits value="11"/>
<xs:fractionDigits value="2"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="rtvQuantity" type="xs:decimal"/>
<xs:element name="unitOverShort" type="xs:decimal"/>
<xs:element name="vendorNumber" type="xs:string"/>
<xs:element name="workbook">
<xs:complexType>
<xs:sequence>
<xs:element ref="ns0:row" minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:schema>
</wsdl:types>
<wsdl:message name="FileInputMessage">
<wsdl:part name="fileName" element="ns0:fileName"/>
</wsdl:message>
<wsdl:portType name="UploadInterface">
<wsdl:operation name="AsyncOperation">
<wsdl:input message="tns:FileInputMessage"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="AsyncWebServiceBinding" type="tns:UploadInterface">
<soap:binding style="document"
transport="http://www.tibco.com/namespaces/ws/2004/soap/binding/JMS"/
<http://www.tibco.com/namespaces/ws/2004/soap/binding/JMS"/> >
<jms:binding messageFormat="bytes"/>
<wsdl:operation name="AsyncOperation">
<wsdl:documentation>The operation has no
documentation</wsdl:documentation>
<soap:operation style="document"
soapAction="/Automation/AsyncWebService"/>
<wsdl:input>
<soap:body use="literal"
namespace="http://InputMessageNamespace <http://InputMessageNamespace> "
parts="fileName"/>
</wsdl:input>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="AsyncWebService">
<wsdl:port name="AsyncWebServiceJMSPort"
binding="tns:AsyncWebServiceBinding">
<soap:address location=""/>
<jms:connectionFactory>QueueConnectionFactory</jms:connectionFactory>
<jms:targetAddress destination="queue">RTVCRMS</jms:targetAddress>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Is there a way to make this work?
Ron
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email