Hi Bill,
I used the
document/literal in my .wsdl file and generated the stub/skel files using
WSDL2Java
but when I try to
invoke my service method iam getting the following error
AxisFault
faultCode: {http://xml.apache.org/axis/}Client faultSubcode: faultString: No such operation 'iName' faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}hostname:BSD-GFA0094J No such operation
'iName'
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221) My wsdl
file:
<?xml
version="1.0" ?>
<definitions name="urn:GetPO" targetNamespace="urn:GetPO" xmlns:tns="urn:GetPO" xmlns:typens="urn:GetPO" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:wbm="http://www.webmethods.com/2001/10/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:spc="http://schemas.xmlsoap.org/soap/encoding/"> <!--
type defs -->
<types> <xsd:schema targetNamespace="urn:GetPO" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:complexType
name="purchaseorder">
<xsd:sequence> <xsd:element name="ItemName" type="xsd:string"/> <xsd:element name="Quantity" type="xsd:int"/> <xsd:element name="price" type="xsd:float"/> <xsd:element name="currency" type="xsd:string"/> </xsd:sequence> </xsd:complexType> <xsd:complexType
name="confirmorder">
<xsd:sequence> <xsd:element name="orderedItem" type="xsd:string"/> <xsd:element name="Total" type="xsd:float"/> </xsd:sequence> </xsd:complexType> </xsd:schema> </types>
<message name="empty"/>
<message name="AddOrderRequest"> <part name="iName" type="xsd:string"/> <part name="purchaseOrder" type="typens:purchaseorder"/> </message> <message name="GetOrderRequest"> <part name="nameofitem" type="xsd:string"/> </message> <message name="GetOrderResponse"> <part name="podetails" type="typens:purchaseorder"/> </message> <!-- port type declns --> <portType name="PurchaseOrderBook"> <operation name="addEntry"> <input message="tns:AddOrderRequest"/> <output message="tns:empty"/> </operation> <operation name="getOrder"> <input message="tns:GetOrderRequest"/> <output message="tns:GetOrderResponse"/> </operation> </portType> <!--
binding declns -->
<binding name="TestingNet" type="tns:PurchaseOrderBook"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> <operation name="addEntry"> <soap:operation soapAction="urn:GetPO/addEntry"/> <input> <soap:body use="literal" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="literal" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation
name="getOrder">
<soap:operation soapAction="urn:GetPO/getOrder"/> <input> <soap:body use="literal" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="literal" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> </binding> <!--
service decln -->
<service name="POservice"> <port name="GetPO" binding="tns:TestingNet" > <soap:address location="http://localhost:8080/axis/services/GetPO"/> </port> </service> </definitions> my
deploy.wsdd
<deployment
xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> <!--
Services from POservice WSDL service -->
<service name="GetPO" provider="java:RPC" style="document"
use="literal">
<parameter name="wsdlTargetNamespace" value="urn:GetPO"/> <parameter name="wsdlServiceElement" value="POservice"/> <parameter name="wsdlServicePort" value="GetPO"/> <parameter name="className" value="GetPO.TestingNetSkeleton"/> <parameter name="wsdlPortType" value="PurchaseOrderBook"/> <parameter name="allowedMethods" value="*"/>
<typeMapping
xmlns:ns="urn:GetPO" qname="ns:purchaseorder" type="java:GetPO.Purchaseorder" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" /> </service> </deployment> Any idea where
iam going wrong..should I make changed to implementation
classes
when i use
document/literal...previously I was using rpc..
regards..
|
- Using complex types Axis and .Net Dhananjayan_K
- Re: Using complex types Axis and .Net Bill Keese
- RE: Using complex types Axis and .Net Dhananjayan_K
- Re: Using complex types Axis and .Net Bill Keese
- RE: Using complex types Axis and .Net Dhananjayan_K
- Re: Using complex types Axis and .Net Bill Keese
- Re: Using complex types Axis and .Net James Black
- Re: Using complex types Axis and .Net Dhananjayan_K