What exactly is a problem ? any stacktrace ?

On 2/19/07, Irshad Buchh <[EMAIL PROTECTED]> wrote:

Hi,
We just tried to export the jpetstore as a webservice using xfire 1.2.4. It
worked fine. Next we used axis wsdl-to java to create the client classes and
pojos. Now we need to configure the BeanSerializer/BeanDeserilizer to use
with Spring JaxRpcPortProxyFactoryBean at the client side. The wsdl and
config is below. This does not work. ANy suggestions?

--Irshad.

<bean id="jaxRpcProxy"
class="org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean">
                <property name="serviceFactoryClass">
                        <value>org.apache.axis.client.ServiceFactory</value>
                </property>
                <property name="wsdlDocumentUrl">

<value>http://${serverName}:${httpPort/${contextPath}/service/PetStoreService?wsdl</value>
                </property>
                <property name="namespaceUri">

<value>http://${serverName}:${httpPort}${contextPath}/service/PetStoreService</value>
                </property>
                <property name="serviceName">
                        <value>JaxRpcOrderServiceService</value>
                </property>
                <property name="portName">
                        <value>OrderService</value>
                </property>
                <property name="serviceInterface">

<value>org.springframework.samples.jpetstore.domain.logic.OrderService</value>
                </property>
                <!--
                If you want to work with a JAX-RPC port stub underneath, you 
need to
specify
                an RMI interface to use at the JAX-RPC port level. This might 
give
advantages
                on certain JAX-RPC implementations. If not specified, JAX-RPC 
dynamic
calls
                will be used, which has been tested to work nicely on Apache 
Axis.
                -->
                <!--
                <property name="portInterface">

<value>org.springframework.samples.jpetstore.service.RemoteOrderService</value>
                </property>
                -->
                <property name="servicePostProcessors">
                        <list>
                                <bean
class="org.springframework.remoting.jaxrpc.support.AxisBeanMappingServicePostProcessor">
                                        <property name="encodingStyleUri"
value="http://schemas.xmlsoap.org/soap/encoding/"/>
                                        <property name="typeNamespaceUri" 
value="urn:JPetStore"/>
                                        <property name="beanClasses">
                                                <list>
                                                        
<value>org.springframework.samples.jpetstore.domain.Order</value>
                                                        
<value>org.springframework.samples.jpetstore.domain.LineItem</value>
                                                        
<value>org.springframework.samples.jpetstore.domain.Item</value>
                                                        
<value>org.springframework.samples.jpetstore.domain.Product</value>
                                                </list>
                                        </property>
                                </bean>
                        </list>
                </property>
        </bean>

 The wsdl is as :

  <?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions targetNamespace="http://xfire.webservices";
xmlns:tns="http://xfire.webservices";
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:soap12="http://www.w3.org/2003/05/soap-envelope";
xmlns:ns1="http://domain.jpetstore.samples.springframework.org";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:soapenc11="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding";
xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
- <wsdl:types>
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://xfire.webservices";>
- <xsd:element name="getItem">
+ <xsd:complexType>
- <xsd:sequence>
  <xsd:element maxOccurs="1" minOccurs="1" name="in0" nillable="true"
type="xsd:string" />
  </xsd:sequence>
  </xsd:complexType>
  </xsd:element>
- <xsd:element name="getItemResponse">
- <xsd:complexType>
- <xsd:sequence>
  <xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true"
type="ns1:Item" />
  </xsd:sequence>
  </xsd:complexType>
  </xsd:element>
- <xsd:element name="getOrder">
- <xsd:complexType>
- <xsd:sequence>
  <xsd:element maxOccurs="1" minOccurs="1" name="in0" type="xsd:int" />
  </xsd:sequence>
  </xsd:complexType>
  </xsd:element>
- <xsd:element name="getOrderResponse">
- <xsd:complexType>
- <xsd:sequence>
  <xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true"
type="ns1:Order" />
  </xsd:sequence>
  </xsd:complexType>
  </xsd:element>
- <xsd:element name="getMessage">
- <xsd:complexType>
- <xsd:sequence>
  <xsd:element maxOccurs="1" minOccurs="1" name="in0" nillable="true"
type="xsd:string" />
  </xsd:sequence>
  </xsd:complexType>
  </xsd:element>
- <xsd:element name="getMessageResponse">
- <xsd:complexType>
- <xsd:sequence>
  <xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true"
type="xsd:string" />
  </xsd:sequence>
  </xsd:complexType>
  </xsd:element>
  </xsd:schema>
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://domain.jpetstore.samples.springframework.org";>
- <xsd:complexType name="Item">
- <xsd:sequence>
  <xsd:element minOccurs="0" name="attribute1" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="attribute2" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="attribute3" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="attribute4" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="attribute5" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="itemId" nillable="true" type="xsd:string"
/>
  <xsd:element minOccurs="0" name="listPrice" type="xsd:double" />
  <xsd:element minOccurs="0" name="product" nillable="true"
type="ns1:Product" />
  <xsd:element minOccurs="0" name="productId" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="quantity" type="xsd:int" />
  <xsd:element minOccurs="0" name="status" nillable="true" type="xsd:string"
/>
  <xsd:element minOccurs="0" name="supplierId" type="xsd:int" />
  <xsd:element minOccurs="0" name="unitCost" type="xsd:double" />
  </xsd:sequence>
  </xsd:complexType>
- <xsd:complexType name="Product">
- <xsd:sequence>
  <xsd:element minOccurs="0" name="categoryId" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="description" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="name" nillable="true" type="xsd:string"
/>
  <xsd:element minOccurs="0" name="productId" nillable="true"
type="xsd:string" />
  </xsd:sequence>
  </xsd:complexType>
- <xsd:complexType name="Order">
- <xsd:sequence>
  <xsd:element minOccurs="0" name="billAddress1" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="billAddress2" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="billCity" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="billCountry" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="billState" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="billToFirstName" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="billToLastName" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="billZip" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="cardType" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="courier" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="creditCard" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="expiryDate" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="lineItems" nillable="true"
type="ns1:ArrayOfLineItem" />
  <xsd:element minOccurs="0" name="locale" nillable="true" type="xsd:string"
/>
  <xsd:element minOccurs="0" name="orderDate" type="xsd:dateTime" />
  <xsd:element minOccurs="0" name="orderId" type="xsd:int" />
  <xsd:element minOccurs="0" name="shipAddress1" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="shipAddress2" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="shipCity" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="shipCountry" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="shipState" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="shipToFirstName" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="shipToLastName" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="shipZip" nillable="true"
type="xsd:string" />
  <xsd:element minOccurs="0" name="status" nillable="true" type="xsd:string"
/>
  <xsd:element minOccurs="0" name="totalPrice" type="xsd:double" />
  <xsd:element minOccurs="0" name="username" nillable="true"
type="xsd:string" />
  </xsd:sequence>
  </xsd:complexType>
- <xsd:complexType name="ArrayOfLineItem">
- <xsd:sequence>
  <xsd:element maxOccurs="unbounded" minOccurs="0" name="LineItem"
nillable="true" type="ns1:LineItem" />
  </xsd:sequence>
  </xsd:complexType>
- <xsd:complexType name="LineItem">
- <xsd:sequence>
  <xsd:element minOccurs="0" name="item" nillable="true" type="ns1:Item" />
  <xsd:element minOccurs="0" name="itemId" nillable="true" type="xsd:string"
/>
  <xsd:element minOccurs="0" name="lineNumber" type="xsd:int" />
  <xsd:element minOccurs="0" name="orderId" type="xsd:int" />
  <xsd:element minOccurs="0" name="quantity" type="xsd:int" />
  <xsd:element minOccurs="0" name="totalPrice" type="xsd:double" />
  <xsd:element minOccurs="0" name="unitPrice" type="xsd:double" />
  </xsd:sequence>
  </xsd:complexType>
  </xsd:schema>
  </wsdl:types>
- <wsdl:message name="getMessageRequest">
  <wsdl:part name="parameters" element="tns:getMessage" />
  </wsdl:message>
- <wsdl:message name="getOrderResponse">
  <wsdl:part name="parameters" element="tns:getOrderResponse" />
  </wsdl:message>
- <wsdl:message name="getItemRequest">
  <wsdl:part name="parameters" element="tns:getItem" />
  </wsdl:message>
- <wsdl:message name="getMessageResponse">
  <wsdl:part name="parameters" element="tns:getMessageResponse" />
  </wsdl:message>
- <wsdl:message name="getItemResponse">
  <wsdl:part name="parameters" element="tns:getItemResponse" />
  </wsdl:message>
- <wsdl:message name="getOrderRequest">
  <wsdl:part name="parameters" element="tns:getOrder" />
  </wsdl:message>
- <wsdl:portType name="PetStoreServicePortType">
- <wsdl:operation name="getItem">
  <wsdl:input name="getItemRequest" message="tns:getItemRequest" />
  <wsdl:output name="getItemResponse" message="tns:getItemResponse" />
  </wsdl:operation>
- <wsdl:operation name="getOrder">
  <wsdl:input name="getOrderRequest" message="tns:getOrderRequest" />
  <wsdl:output name="getOrderResponse" message="tns:getOrderResponse" />
  </wsdl:operation>
- <wsdl:operation name="getMessage">
  <wsdl:input name="getMessageRequest" message="tns:getMessageRequest" />
  <wsdl:output name="getMessageResponse" message="tns:getMessageResponse" />
  </wsdl:operation>
  </wsdl:portType>
- <wsdl:binding name="PetStoreServiceHttpBinding"
type="tns:PetStoreServicePortType">
  <wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"; />
- <wsdl:operation name="getItem">
  <wsdlsoap:operation soapAction="" />
- <wsdl:input name="getItemRequest">
  <wsdlsoap:body use="literal" />
  </wsdl:input>
- <wsdl:output name="getItemResponse">
  <wsdlsoap:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="getOrder">
  <wsdlsoap:operation soapAction="" />
- <wsdl:input name="getOrderRequest">
  <wsdlsoap:body use="literal" />
  </wsdl:input>
- <wsdl:output name="getOrderResponse">
  <wsdlsoap:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="getMessage">
  <wsdlsoap:operation soapAction="" />
- <wsdl:input name="getMessageRequest">
  <wsdlsoap:body use="literal" />
  </wsdl:input>
- <wsdl:output name="getMessageResponse">
  <wsdlsoap:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:service name="PetStoreService">
- <wsdl:port name="PetStoreServiceHttpPort"
binding="tns:PetStoreServiceHttpBinding">
  <wsdlsoap:address
location="http://localhost:8080/jpetstore/service/PetStoreService"; />
  </wsdl:port>
  </wsdl:service>
  </wsdl:definitions>
--
View this message in context: 
http://www.nabble.com/Need-help-with-Spring-JPetstore-webservice-using-XFire.-tf3252073.html#a9040188
Sent from the XFire - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email




--
-----
When one of our products stops working, we'll blame another vendor
within 24 hours.

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to