JAXRPC  Client for document literal Webservice - ClassCastException

Hi...
I am consuming one document literal webservice in AquaLogicService Bus which is returning complex type object. I have created jax-rpc client (generated stubs) to consume that ALSB service. I am able to send the request and service also generating the SOAP response . but I am getting following exception when running client.
java.lang.ClassCastException: org.apache.axis.Message
     at com.sun.xml.rpc.client.StubBase._postSendingHook(StubBase.java:231)
     at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:324)
     at grpPolicy.GrpPolSP_Stub.queryByExample_HI(GrpPolSP_Stub.java:69)
     at grpPolicy.PolicyClientStubs.main(PolicyClientStubs.java:22)
Here is my client:
try
               Request inObject = new Request();
               Request outObject = new Request();
               PolicyData pData = new PolicyData();
               pData.setGroupName("Pharmaceutical");
               pData.setPolicyNumber("1");
               inObject.setPolicyData(pData);
               Group_spcPolicy_spcInbound service = new Group_spcPolicy_spcInbound_Impl();
               GrpPolSP_Stub stub = (GrpPolSP_Stub) service.getGrpPolSP();
               outObject = (Request) stub.queryByExample_HI(inObject);
               System.out.println(outObject.getPolicyData().getGroupName());
          catch(Exception e)
               e.printStackTrace();
Below I have pasted my WSDL:
<?xml version="1.0" encoding="utf-8"?>
<s0:definitions targetNamespace="http://test.com/asi/" xmlns:s0="http://schemas.xmlsoap.org/wsdl/" xmlns:s1="http://test.com/asi/" xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/">
<s0:types>
<xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.test.com/xml/Request" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://test.com/asi/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsdLocal1="http://www.test.com/xml/Request">
<xsd:annotation>
<xsd:documentation>Test XSD Generation</xsd:documentation>
</xsd:annotation>
<xsd:element name="ListOfRequest" type="xsdLocal1:ListOfRequest"/>
<xsd:complexType name="ListOfRequestTopElmt">
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="ListOfRequest" type="xsdLocal1:ListOfRequest"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ListOfRequest">
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="PolicyData" type="xsdLocal1:PolicyData"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="PolicyData">
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="0" name="EffectiveDate" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="0" name="EndDate" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="0" name="GroupName" type="xsdLocal1:string100"/>
<xsd:element maxOccurs="1" minOccurs="0" name="PolicyNumber" type="xsdLocal1:string100"/>
<xsd:element maxOccurs="1" minOccurs="0" name="State" type="xsdLocal1:string10"/>
<xsd:element maxOccurs="1" minOccurs="0" name="Type" type="xsdLocal1:string30"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="string10">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="string30">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="30"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="string100">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="100"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="string20">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="20"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
<xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://test.com/asi/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://test.com/asi/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsdLocal1="http://www.test.com/xml/Request">
<xsd:import namespace="http://www.test.com/xml/Request"/>
<xsd:element name="QueryByExample_HI_Input">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="xsdLocal1:ListOfRequest"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="QueryByExample_HI_Output">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="xsdLocal1:ListOfRequest"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</s0:types>
<s0:message name="QueryByExample_HI_Input">
<s0:part element="s1:QueryByExample_HI_Input" name="QueryByExample_HI_Input"/>
</s0:message>
<s0:message name="QueryByExample_HI_Output">
<s0:part element="s1:QueryByExample_HI_Output" name="QueryByExample_HI_Output"/>
</s0:message>
<s0:portType name="GrpPolSP">
<s0:operation name="QueryByExample_HI">
<s0:input message="s1:QueryByExample_HI_Input"/>
<s0:output message="s1:QueryByExample_HI_Output"/>
</s0:operation>
</s0:portType>
<s0:binding name="GrpPolSP" type="s1:GrpPolSP">
<s2:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<s0:operation name="QueryByExample_HI">
<s2:operation soapAction="document/http://test.com/asi/:QueryByExample_HI"/>
<s0:input>
<s2:body use="literal"/>
</s0:input>
<s0:output>
<s2:body use="literal"/>
</s0:output>
</s0:operation>
</s0:binding>
<s0:service name="Group_spcPolicy_spcInbound">
<s0:port binding="s1:GrpPolSP" name="GrpPolSP">
<s2:address location="http://localhost:7021/POC/Service/GroupPolicy"/>
</s0:port>
</s0:service>
</s0:definitions>

Hi,
Are you talking about uisng WSIF invocation from ESB or BPEL? I am also trying to explore the possibility of invoking a service via HTTP binding available from WSIF providers. I know we can do this in BPEL. Wondering about how to do this in ESB.
Regards,
Rajesh

Similar Messages

  • Dynamic client for document styled webservice

    Hi ,
    I created a document styled webservice when I try to run it using DII client I am getting the following problem
    Exception in thread "Main Thread" javax.xml.rpc.JAXRPCException: failed to invoke operation 'testOperation' due to an error in the soap layer (SAAJ); nested exception is: Message[ failed to serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://www.examples.com/types']:testOperation}]StackTrace[
    Can anybody give me a simple example of creating document styled webservice and DII client using weblogic workshop 9.2
    Thanks
    Sksrinu

    What's the question about??

  • Problem with DII client for Doc/Literal with non built-in type in WL8.1 Sp2

    Hello,
    I have been trying to make this DII client for doc/literal using non built-in type to work for 2 days now.
    Any help/input will be greatly appreciated. I have added the code and wsdl below.
    BTW this is using the code first approach.
    Works perfectly fine with the clientgen generated stubs. But not with DII.
    With the stubs, following is the SOAP envelope.
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <env:Header/>
    <env:Body>
    <n1:getType xmlns:n1="http://www.aeb.com/wlws">
         <n2:id xmlns:n2="java:com.aeb.types">XYS</n2:id>
         <n3:name xmlns:n3="java:com.aeb.types">Name</n3:name>
    </n1:getType>
    </env:Body>
    </env:Envelope>
    With DII (using the serializer/deserializer generated by clientgen),
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <env:Header/>
    <env:Body>
    <n1:TestType xmlns:n1="java:com.aeb.types">
         <n1:id>ABC</n1:id>
         <n1:name>Some Name</n1:name>
    </n1:TestType>
    </env:Body></env:Envelope>
    Exception
    javax.xml.rpc.soap.SOAPFaultException: Unable to find a matching Operation for this remote invocation
    <n1:TestType xmlns:n1="java:com.aeb.types">
    <n1:id>ABC</n1:id>
    <n1:name>Some Name</n1:name>
    </n1:TestType>.
         Please check your operation name.
         at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:313)
         at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
         at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:558)
         at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:411)
         at com.amgen.webservice.clients.DocClient.callService(DocClient.java:83)
         at com.amgen.webservice.clients.DocClient.main(DocClient.java:35)
    Client
    System.setProperty("javax.xml.rpc.ServiceFactory","weblogic.webservice.core.rpc.ServiceFactoryImpl");
    System.setProperty("weblogic.webservice.verbose", "true");
    String targetNamespace = "http://www.aeb.com/wlws";
    ServiceFactory factory = ServiceFactory.newInstance();
    QName serviceName = new QName(targetNamespace, "DocWebservice");
    QName portName = new QName(targetNamespace, "DocWebservicePort");
    QName operationName = new QName(targetNamespace, "getType");
    Service service = factory.createService(serviceName);
    TypeMappingRegistry registry = service.getTypeMappingRegistry();
    TypeMapping mapping = registry.getTypeMapping(SOAPConstants.URI_NS_SOAP_ENCODING);
    mapping.register(TestType.class, new QName("java:com.aeb.types","TestType"), new TestTypeCodec(), new TestTypeCodec());
    Call call = service.createCall();
    call.setOperationName(operationName);
    call.setPortTypeName(portName);
    call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
    call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
    call.setProperty(Call.OPERATION_STYLE_PROPERTY, "document");
    call.addParameter("testType", new QName("java:com.aeb.types","TestType"), TestType.class, ParameterMode.IN);
    call.setReturnType(new QName("java:com.aeb.types", "TestType"),TestType.class);
    call.setTargetEndpointAddress("http://localhost:7001/wlws/DocWebservice");
    TestType type = new TestType();
    type.setId("ABC");
    type.setName("Some Name");
    TestType res = (TestType) call.invoke(new Object[] { type });
    System.out.println(res.getName());
    TestType.java
    package com.aeb.types;
    import java.io.Serializable;
    public class TestType implements Serializable {
         private String id;
         private String name;
         public String getId() {
              return id;
         public void setId(String id) {
              this.id = id;
         public String getName() {
              return name;
         public void setName(String name) {
              this.name = name;
    DocWebservice.java
    package com.aeb.webservices;
    import com.aeb.types.TestType;
    public class DocWebservice {
         public TestType getType(TestType type) {
              System.out.println("In Server....");
              System.out.println("Received : " + type.getName());
              return type;
    ServiceGen Ant Task
    <servicegen destear="${dist.dir}/wlws.ear" contexturi="wlws">
         <service javaClassComponents="com.aeb.webservices.DocWebservice"
              generateTypes="True"
              targetNamespace="http://www.aeb.com/wlws"
              serviceName="DocWebservice"
              serviceURI="/DocWebservice"
              style="document">
              <client packageName="com.aeb.ws.doc.client" />
         </service>
    </servicegen>
    WSDL
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions xmlns:tns="http://www.aeb.com/wlws" xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding" xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://www.aeb.com/wlws">
    <types xmlns:tns="http://www.aeb.com/wlws"
    xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding"
    xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:s="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schemas.xmlsoap.org/wsdl/">
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:stns="http://www.aeb.com/wlws"
    xmlns:tp="java:com.aeb.types"
    elementFormDefault="qualified"
    attributeFormDefault="qualified"
    targetNamespace="http://www.aeb.com/wlws">
    <xsd:import namespace="java:com.aeb.types">
    </xsd:import>
    <xsd:element xmlns:tp="java:com.aeb.types"
    type="tp:TestType"
    name="getType"
    nillable="true">
    </xsd:element>
    <xsd:element xmlns:tp="java:com.aeb.types"
    type="tp:TestType"
    name="getTypeResponse"
    nillable="true">
    </xsd:element>
    </xsd:schema>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:stns="java:com.aeb.types"
    elementFormDefault="qualified"
    attributeFormDefault="qualified"
    targetNamespace="java:com.aeb.types">
    <xsd:complexType name="TestType">
    <xsd:sequence>
    <xsd:element type="xsd:string"
    name="id"
    minOccurs="1"
    maxOccurs="1"
    nillable="true">
    </xsd:element>
    <xsd:element type="xsd:string"
    name="name"
    minOccurs="1"
    maxOccurs="1"
    nillable="true">
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    </types>
    <message name="getType">
    <part xmlns:partns="http://www.aeb.com/wlws"
    name="testType"
    element="partns:getType">
    </part>
    </message>
    <message name="getTypeResponse">
    <part xmlns:partns="http://www.aeb.com/wlws"
    name="result"
    element="partns:getTypeResponse">
    </part>
    </message>
    <portType name="DocWebservicePort">
    <operation name="getType">
    <input message="tns:getType">
    </input>
    <output message="tns:getTypeResponse">
    </output>
    </operation>
    </portType>
    <binding type="tns:DocWebservicePort"
    name="DocWebservicePort">
    <soap:binding style="document"
    transport="http://schemas.xmlsoap.org/soap/http">
    </soap:binding>
    <operation name="getType">
    <soap:operation style="document"
    soapAction="">
    </soap:operation>
    <wsr:reliability persistDuration="60000">
    </wsr:reliability>
    <input>
    <soap:body namespace="http://www.aeb.com/wlws"
    use="literal">
    </soap:body>
    </input>
    <output>
    <soap:body namespace="http://www.aeb.com/wlws"
    use="literal">
    </soap:body>
    </output>
    </operation>
    </binding>
    <service name="DocWebservice">
    <port name="DocWebservicePort"
    binding="tns:DocWebservicePort">
    <soap:address location="http://localhost:7001/wlws/DocWebservice">
    </soap:address>
    </port>
    </service>
    </definitions>
    Thanks
    Aspert

    Hello,
    I have been trying to make this DII client for doc/literal using non built-in type to work for 2 days now.
    Any help/input will be greatly appreciated. I have added the code and wsdl below.
    BTW this is using the code first approach.
    Works perfectly fine with the clientgen generated stubs. But not with DII.
    With the stubs, following is the SOAP envelope.
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <env:Header/>
    <env:Body>
    <n1:getType xmlns:n1="http://www.aeb.com/wlws">
         <n2:id xmlns:n2="java:com.aeb.types">XYS</n2:id>
         <n3:name xmlns:n3="java:com.aeb.types">Name</n3:name>
    </n1:getType>
    </env:Body>
    </env:Envelope>
    With DII (using the serializer/deserializer generated by clientgen),
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <env:Header/>
    <env:Body>
    <n1:TestType xmlns:n1="java:com.aeb.types">
         <n1:id>ABC</n1:id>
         <n1:name>Some Name</n1:name>
    </n1:TestType>
    </env:Body></env:Envelope>
    Exception
    javax.xml.rpc.soap.SOAPFaultException: Unable to find a matching Operation for this remote invocation
    <n1:TestType xmlns:n1="java:com.aeb.types">
    <n1:id>ABC</n1:id>
    <n1:name>Some Name</n1:name>
    </n1:TestType>.
         Please check your operation name.
         at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:313)
         at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
         at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:558)
         at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:411)
         at com.amgen.webservice.clients.DocClient.callService(DocClient.java:83)
         at com.amgen.webservice.clients.DocClient.main(DocClient.java:35)
    Client
    System.setProperty("javax.xml.rpc.ServiceFactory","weblogic.webservice.core.rpc.ServiceFactoryImpl");
    System.setProperty("weblogic.webservice.verbose", "true");
    String targetNamespace = "http://www.aeb.com/wlws";
    ServiceFactory factory = ServiceFactory.newInstance();
    QName serviceName = new QName(targetNamespace, "DocWebservice");
    QName portName = new QName(targetNamespace, "DocWebservicePort");
    QName operationName = new QName(targetNamespace, "getType");
    Service service = factory.createService(serviceName);
    TypeMappingRegistry registry = service.getTypeMappingRegistry();
    TypeMapping mapping = registry.getTypeMapping(SOAPConstants.URI_NS_SOAP_ENCODING);
    mapping.register(TestType.class, new QName("java:com.aeb.types","TestType"), new TestTypeCodec(), new TestTypeCodec());
    Call call = service.createCall();
    call.setOperationName(operationName);
    call.setPortTypeName(portName);
    call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
    call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
    call.setProperty(Call.OPERATION_STYLE_PROPERTY, "document");
    call.addParameter("testType", new QName("java:com.aeb.types","TestType"), TestType.class, ParameterMode.IN);
    call.setReturnType(new QName("java:com.aeb.types", "TestType"),TestType.class);
    call.setTargetEndpointAddress("http://localhost:7001/wlws/DocWebservice");
    TestType type = new TestType();
    type.setId("ABC");
    type.setName("Some Name");
    TestType res = (TestType) call.invoke(new Object[] { type });
    System.out.println(res.getName());
    TestType.java
    package com.aeb.types;
    import java.io.Serializable;
    public class TestType implements Serializable {
         private String id;
         private String name;
         public String getId() {
              return id;
         public void setId(String id) {
              this.id = id;
         public String getName() {
              return name;
         public void setName(String name) {
              this.name = name;
    DocWebservice.java
    package com.aeb.webservices;
    import com.aeb.types.TestType;
    public class DocWebservice {
         public TestType getType(TestType type) {
              System.out.println("In Server....");
              System.out.println("Received : " + type.getName());
              return type;
    ServiceGen Ant Task
    <servicegen destear="${dist.dir}/wlws.ear" contexturi="wlws">
         <service javaClassComponents="com.aeb.webservices.DocWebservice"
              generateTypes="True"
              targetNamespace="http://www.aeb.com/wlws"
              serviceName="DocWebservice"
              serviceURI="/DocWebservice"
              style="document">
              <client packageName="com.aeb.ws.doc.client" />
         </service>
    </servicegen>
    WSDL
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions xmlns:tns="http://www.aeb.com/wlws" xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding" xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://www.aeb.com/wlws">
    <types xmlns:tns="http://www.aeb.com/wlws"
    xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding"
    xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:s="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schemas.xmlsoap.org/wsdl/">
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:stns="http://www.aeb.com/wlws"
    xmlns:tp="java:com.aeb.types"
    elementFormDefault="qualified"
    attributeFormDefault="qualified"
    targetNamespace="http://www.aeb.com/wlws">
    <xsd:import namespace="java:com.aeb.types">
    </xsd:import>
    <xsd:element xmlns:tp="java:com.aeb.types"
    type="tp:TestType"
    name="getType"
    nillable="true">
    </xsd:element>
    <xsd:element xmlns:tp="java:com.aeb.types"
    type="tp:TestType"
    name="getTypeResponse"
    nillable="true">
    </xsd:element>
    </xsd:schema>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:stns="java:com.aeb.types"
    elementFormDefault="qualified"
    attributeFormDefault="qualified"
    targetNamespace="java:com.aeb.types">
    <xsd:complexType name="TestType">
    <xsd:sequence>
    <xsd:element type="xsd:string"
    name="id"
    minOccurs="1"
    maxOccurs="1"
    nillable="true">
    </xsd:element>
    <xsd:element type="xsd:string"
    name="name"
    minOccurs="1"
    maxOccurs="1"
    nillable="true">
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    </types>
    <message name="getType">
    <part xmlns:partns="http://www.aeb.com/wlws"
    name="testType"
    element="partns:getType">
    </part>
    </message>
    <message name="getTypeResponse">
    <part xmlns:partns="http://www.aeb.com/wlws"
    name="result"
    element="partns:getTypeResponse">
    </part>
    </message>
    <portType name="DocWebservicePort">
    <operation name="getType">
    <input message="tns:getType">
    </input>
    <output message="tns:getTypeResponse">
    </output>
    </operation>
    </portType>
    <binding type="tns:DocWebservicePort"
    name="DocWebservicePort">
    <soap:binding style="document"
    transport="http://schemas.xmlsoap.org/soap/http">
    </soap:binding>
    <operation name="getType">
    <soap:operation style="document"
    soapAction="">
    </soap:operation>
    <wsr:reliability persistDuration="60000">
    </wsr:reliability>
    <input>
    <soap:body namespace="http://www.aeb.com/wlws"
    use="literal">
    </soap:body>
    </input>
    <output>
    <soap:body namespace="http://www.aeb.com/wlws"
    use="literal">
    </soap:body>
    </output>
    </operation>
    </binding>
    <service name="DocWebservice">
    <port name="DocWebservicePort"
    binding="tns:DocWebservicePort">
    <soap:address location="http://localhost:7001/wlws/DocWebservice">
    </soap:address>
    </port>
    </service>
    </definitions>
    Thanks
    Aspert

  • Building WSDL client for OIM SPML webservice

    Has any one created WSDL client for OIM SPML webservice,
    Any help is appreciated.
    Thanks,
    Pandu
    old thread -->
    add udfs to spml prov. request to oim
    ==========================
    Hi,
    I am provisioning users in OIM from by sending spml requests
    I used the sample client that comes in xellerate directory.
    How can I update spml requests to include UDFs to create user in him with udf s.
    Thanks
    Pandu
    Edited by: pandu345 on Aug 5, 2009 3:27 PM

    Hello there,
    There is a .NET web service client which is successfully able to access the weblogic application server wsdl from oim 9101 and it can see the complete user profile as a response from the same.
    1.) Now, there is a situation where oim needs to send some attribute values to that .NET web service client, after the data from their side comes to OIM and updates a single attribute values for e.g. PIN. How can we do that ?
    2.) and I want to add some UDFs into the existing SPML provisioning user profile. How can I do that ?
    3.) Also, how will OIM know that it was able to successfully send the attribute values to the web service client.
    http://download.oracle.com/docs/cd/E10391_01/doc.910/e10360/creategtc.htm#Toc153968032
    I have gone through this. I didnt found this in OIM 9101.
    Any ideas/references/clues/hints appreciated in this concern.
    Thanks in advance,
    - oidm.

  • Generate standalone java client for weblogic (11g) webservice

    Hi All,
    I am a newbie to web logic family. I am using web logic 11g server and deployed JAX-WS web service on it using the documentation given for the same. I have created one complex object to return some data from the server as web service. I am able to build, deploy and run the web service using ant task on same machine.
    But I need to deploy client classes on another machine and call web service from machine other than I am using for creating and deploying web service. Can you please tell me how can I achieve this ? Which jar files are needed to run a web service client generated through ant task and how can I create web service client differently using Eclipse IDE?
    I have generated Client classes as jar using eclipse OEPE but I dont have any idea how can I use it because it changes the package name and class names also :(
    Please help me out any hint would be greatly appreciated. :)

    Hi All,
    I have found all the answers regarding my query from the link below :
    [Overview of Web Services Invocation|http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webserv/client.html#wp229351]
    May be this would be helpful to the newbie who is just like me :) yippy :)

  • Document-Literal and Arrays - WSDL seems incorrect ??

    I have create a simple "document-literal" webservice that returns an object containing some simple fields and an array of another object.
    Task.cfc
    ===============================
    <cfcomponent>
       <cfproperty name="Id"        type="string">
       <cfproperty name="Priority"  type="numeric">
       <cfproperty name="StartTime" type="date">
       <cfproperty name="StopTime"  type="date">
       <cfproperty name="AOI"       type="VertexPoint[]">
    </cfcomponent>  
    VertexPoint.cfc
    ============================
    <cfcomponent>
       <cfproperty name="Latitude"  type="numeric">
       <cfproperty name="Longitude" type="numeric">
       <cfproperty name="Altitude"  type="numeric">
    </cfcomponent>
    My webservice returns a Task object
    <cfcomponent  style="document">
       <cffunction name="getTask" returnType="Task" access="remote" output="false"> 
       </cffunction>
    </cfcomponent>
    When I look at the generated WSDL is see the following complexTypes:
    NOTICE THE name="item" IN THE COMPLEXTYPE ArrayOf_xsd_anyType.
    <complexType name="VertexPoint">
       <sequence>
          <element name="Altitude" nillable="true" type="xsd:double"/>
          <element name="Latitude" nillable="true" type="xsd:double"/>
          <element name="Longitude" nillable="true" type="xsd:double"/>
       </sequence>
    </complexType>
    <complexType name="Task">
       <sequence>
          <element name="AOI" nillable="true" type="tns1:ArrayOf_xsd_anyType"/>
          <element name="Id" nillable="true" type="xsd:string"/>
          <element name="Priority" nillable="true" type="xsd:double"/>
          <element name="StartTime" nillable="true" type="xsd:dateTime"/>
          <element name="StopTime" nillable="true" type="xsd:dateTime"/>
       </sequence>
    </complexType>
    <complexType name="ArrayOf_xsd_anyType">
       <sequence>
          <element maxOccurs="unbounded" minOccurs="0" name="item" type="impl:VertexPoint"/>
       </sequence>
    </complexType>
    When I look at the XML/data returned when I call the webservice it is:
      <getTaskResponse xmlns="http://users">
       <getTaskReturn>
        <AOI>
         <AOI xsi:type="ns1:VertexPoint" xmlns:ns1="http://users">
          <Altitude>1.0</Altitude>
          <Latitude>1.0</Latitude>
          <Longitude>1.0</Longitude>
         </AOI>
         <AOI xsi:type="ns2:VertexPoint" xmlns:ns2="http://users">
          <Altitude>2.0</Altitude>
          <Latitude>2.0</Latitude>
          <Longitude>2.0</Longitude>
         </AOI>
        </AOI>
        <Id>1</Id>
        <Priority>99.0</Priority>
        <StartTime>2009-10-15T06:00:00.000Z</StartTime>
        <StopTime>2009-10-17T05:59:59.000Z</StopTime>
       </getTaskReturn>
      </getTaskResponse>
    Shouldn't the tags be
    <AOI>
         <item>
         </item>
         <item>
         </item>
    <AOI>
    I am trying to access this WS from a java client and the AOI is always null
    Any help would be greatly appreciated.  (BTW - If I use "rpc" WS everything work fine)

    repost.....

  • Document-Oriented Webservice

    Does anyone has any example for Document-Oriented Webservice...?
    thanks

    http://manojc.com/?sample13
    Hope this helps
    Ajay
    "a" <[email protected]> wrote in message news:[email protected]..
    Does anyone has any example for Document-Oriented Webservice...?
    thanks

  • Document Oriented Webservices - Having problems

    I am trying to develope a simple document oriented webservice. But, for some reason when I try to invoke it, I am getting a error message saying that the remote method could not be found.
    Here is what I did,
    1. Created a POJO with one method that takes string as a parameter.
    2. Used servicegen task to build the webservice. Didn't change the style here.
    3. Deployed it and tried to invoke it. It worked fine.
    4. Changed the style to "document" in the ant task deployed it again. Above mentioned exception from weblogic.
    - Didn't use any non-built in data types.
    - Weblogic 8.1 SP 2.
    Am I missing something? Please help. Its kinda urgent. If someone has a simple example for document oriented webservice could you please post it?
    Thanks in advance.
    - Aspert

    Optical Character Recognition. Basically Acrobat tries to read the graphic and replace any text it thinks it sees with the text. There are 3 versions. Two provide the text in the background (searchable) and leave the graphics alone for viewing. ClearScan replaces the graphic with a combination of graphics and the intepretation of the text. Try it on a sample graphic that you can import for a TIF or JPeg. Also, TIF and such give better results because they are lossless in the storage.

  • Document literal client

    Hi All,
    I am trying to access a document literal client service exposed by tibco business works. I modified the sample/jax-rpc/advanced/DIIHelloClient.java to access the service.
    I am stuck up now in this problem regarding serializers. ( i donno why do we need serializer here )
    the serializer/deserializer for parameter number: 0, named: "{http://markets.midwestiso.org/tibco/xml}LMPData", type: "{http://markets.midwestiso.org/tibco/xml}LMPData", is ambiguous because its class could not be determined
    at com.sun.xml.rpc.client.dii.BasicCall.serializerNotFoundException(BasicCall.java:653)
    at com.sun.xml.rpc.client.dii.BasicCall.createLiteralResponseSerializer(BasicCall.java:592)
    at com.sun.xml.rpc.client.dii.BasicCall.getResponseDeserializer(BasicCall.java:557)
    at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:339)
    at DIIHelloClient.testEchoString(DIIHelloClient.java:118)
    at DIIHelloClient.main(DIIHelloClient.java:44)
    The service returns an XML document in the response and the doesnot take any parameters. I am looking to get the whole XML as Document or string.
    Am i doing anything wrong here ? Any help, thoughts, links or a sample would be greately appreciated.
    regards,
    Arun

    I found the solution myself. My example was not working since i had a previous version of saaj-ri.jar
    I replaced it with saaj-impl.jar from the jwsdp1.3 and it works.... I am able to send XML in the request and receive XML in the response using SAAJ APIs on a service exposed as document/literal.
    I am posting the sample code just in case anybody again searches for this.
             URL endpoint=new URL("http://localhost:9094/tnt/services/Processes/soapPrcLmpData");
             SOAPConnectionFactory factory= SOAPConnectionFactory.newInstance();
             SOAPConnection connection = factory.createConnection();
             MessageFactory mffactory= MessageFactory.newInstance();
             SOAPMessage message= mfactory.createMessage();
             SOAPPart soapPart=msg.getSOAPPart();
             SOAPEnvelope envelope = soapPart.getEnvelope();
             SOAPBody body = envelope.getBody();
             body.addChildElement(envelope.createName("LmpRequest" , "", "http://markets.midwestiso.org/tibco/xml/response"))
             .addChildElement("LastModifiedTime").addTextNode("2003-12-12");
             message.saveChanges();
             SOAPMessage reply = connection.call(message, endpoint);
             TransformerFactory tFact=TransformerFactory.newInstance();
             Transformer transformer = tFact.newTransformer();
             Source src = reply.getSOAPPart().getContent();
             StreamResult result=new StreamResult( System.out );
             transformer.transform(src, result);
             System.out.println();
             connection.close();

  • Problem exporting webservice document/literal in Weblogic Workshop 10.3

    While migrating an applications from Weblogic 8.1 to Weblogic 10.3 and facing a problem with one webservice, the others webservices have been migrated without any problems.
    When try to export and deploy the webservice getting the following error:
    Exception in DocumentoCompulsado
    com.bea.control.ServiceControlException: Unable to retrieve ServiceClass for WSDL at path wsdl/CompulsaWSSOAPControl_CompulsaWSWsdl.wsdl, service CompulsaWS for control wsdl.CompulsaWSSOAPControl from cache[com.bea.control.servicecontrol.util.ServiceClassCacheException: Unable to restore ServiceClass from resource wsdl/CompulsaWSSOAPControlServiceClassMemento.ser, service CompulsaWS for control wsdl.CompulsaWSSOAPControl]
    Caused by: com.bea.control.servicecontrol.util.ServiceClassCacheException: Unable to restore ServiceClass from resource wsdl/CompulsaWSSOAPControlServiceClassMemento.ser, service CompulsaWS for control wsdl.CompulsaWSSOAPControl
    ... 50 more
    Caused by: com.bea.control.servicecontrol.util.memento.ServiceClassMementoException: Could not load the following resource file: wsdl/CompulsaWSSOAPControlServiceClassMemento.ser. There are two possibilities why this would occur. The first is that you are trying to run a 9.0 version of the service control. In this case everything should still work fine and you can ignore this exception. The other case is that the resource file is not in the proper location of the classpath. It should be in the same directory as the service control interface class. You might have to change your build scripts to make this work out for you. The resource file is generated during control assembly time and needs to be moved to the same directory as the service control interface class.
    Trying to deploy the webservice, Weblogic fails telling that there is not a file named wsdl/CompulsaWSSOAPControlServiceClassMemento.ser and it is true, that file is not in the file we are trying to deploy. So the problem seems to be in Workshop which is not including the file required.
    Looking for differences between this webservice and the others, realized that this webservice has declared, in its WSDL file, the document-literal binding and the others have rpc-literal.
    Found a workaround. The webserice is called by using a ServiceControl. If the Service Control is type rpc, the webservice is exported and deployed without any problems, but if we use xmlbean option the webservice could not be deployed, the .ser file is not generated. I think this is reasonable because .ser files are relationed with xmlbeans.
    Is it a known issue? if yes, could you please tell me the bug/CR number?

    I am getting the same error, but another situation; I have generated an EAR file, it works perfectly in one machine but I am getting this error in another.
    Unable to retrieve ServiceClass for WSDL at path com/nononononon/nono/nono/services/SearchServices.wsdl, service SearchServices for control com.nononononon.nono.nono.services.SearchServicesServiceControl from cache[com.bea.control.servicecontrol.util.ServiceClassCacheException: Unable to restore ServiceClass from resource com/nononononon/nono/nono/services/SearchServicesServiceControlServiceClassMemento.ser, service SearchServices for control com.nononononon.nono.nono.services.SearchServicesServiceControl]
    I have searched the web without finding an resolution, exploding my EAR I see that I have the
    *ClassMemento.ser
    in the same folder as my service control. As I said before it works in one machine but not in another.
    Does anyone have any idea what is going on?
    PS: I have stooped the server where I am getting this error and cleaned tmp and stage folder. No success.
    The full stack trace looks like this
    [2012.01.03 13:07:39] - [286821] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [FATAL] - com.bea.control.ServiceControlException: Unable to retrieve ServiceClass for WSDL at path com/nononono/nono/nono/controls/MarketingOffers.wsdl, service MarketingOffers for control com.nononono.nono.nono.controls.MarketingOffersServiceControl from cache[com.bea.control.servicecontrol.util.ServiceClassCacheException: Unable to restore ServiceClass from resource com/nononono/nono/nono/controls/MarketingOffersServiceControlServiceClassMemento.ser, service MarketingOffers for control com.nononono.nono.nono.controls.MarketingOffersServiceControl]
         at com.bea.control.servicecontrol.impl.ServiceControlImpl.getServiceClass(ServiceControlImpl.java:1734)
         at com.bea.control.servicecontrol.impl.ServiceControlImpl.invoke(ServiceControlImpl.java:524)
         at com.nononono.nono.nono.controls.MarketingOffersServiceControlBean.getQualifiers(MarketingOffersServiceControlBean.java:309)
         at com.nononono.nono.nono.services.MarketOffers.getQualifiers(Unknown Source)
         at com.nononono.nono.nono.services.MarketOffers.GetQualifiers(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.wsee.component.pojo.JavaClassComponent.invoke(JavaClassComponent.java:112)
         at weblogic.wsee.ws.dispatch.server.ComponentHandler.handleRequest(ComponentHandler.java:84)
         at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:141)
         at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:114)
         at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80)
         at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.java:66)
         at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java:44)
         at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseWSServlet.java:285)
         at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:169)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: com.bea.control.servicecontrol.util.ServiceClassCacheException: Unable to restore ServiceClass from resource com/nononono/nono/nono/controls/MarketingOffersServiceControlServiceClassMemento.ser, service MarketingOffers for control com.nononono.nono.nono.controls.MarketingOffersServiceControl
         at com.bea.control.servicecontrol.util.ServiceClassCache.insertEntry(ServiceClassCache.java:140)
         at com.bea.control.servicecontrol.util.ServiceClassCache.getServiceClass(ServiceClassCache.java:75)
         at com.bea.control.servicecontrol.impl.ServiceControlImpl.getServiceClass(ServiceControlImpl.java:1718)
         ... 30 more
    Caused by: com.bea.control.servicecontrol.util.memento.ServiceClassMementoException: Could not load the ServiceClassMemento from the following resource file: com/nononono/nono/nono/controls/MarketingOffersServiceControlServiceClassMemento.ser. This is probably due to a versioning issue and if the developer was astute when they made the change then this should not be the reason. Another possibility is that this resource has become corrupt. The good news is a rebuild of your app should fix it.
         at com.bea.control.servicecontrol.util.memento.ServiceClassMementoUtil.loadServiceClass(ServiceClassMementoUtil.java:77)
         at com.bea.control.servicecontrol.util.ServiceClassCache.insertEntry(ServiceClassCache.java:96)
         ... 32 more
    Caused by: java.io.InvalidClassException: javax.xml.namespace.QName; local class incompatible: stream classdesc serialVersionUID = -9120448754896609940, local class serialVersionUID = 4418622981026545151
         at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
         at java.util.HashMap.readObject(HashMap.java:1159)
         at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
         at com.bea.control.servicecontrol.util.memento.ServiceClassMementoUtil.loadServiceClass(ServiceClassMementoUtil.java:69)
         ... 33 more
    [2012.01.03 13:07:39] - [286835] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [DEBUG] - e.save()finished
    [2012.01.03 13:07:39] - [286835] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [FATAL] - >>ESB.MarketOffers.GetQualifiers:GetQualifiers Webservice
    [2012.01.03 13:07:39] - [286835] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [DEBUG] - >> Duration 15
    [2012.01.03 13:07:40] - [288220] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [INFO ] - getGlobalAlertList().start
    [2012.01.03 13:07:40] - [288232] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [INFO ] - getGlobalAlerts().start
    [2012.01.03 13:07:40] - [288234] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [INFO ] - getGlobalAlerts().end
    [2012.01.03 13:07:40] - [288234] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [INFO ] - getGlobalAlertList() event logging error.null
    [2012.01.03 13:07:40] - [288234] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [INFO ] - getGlobalAlertList().end
    [2012.01.03 13:08:04] - [312812] [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [DEBUG] - >>>MSC message consuming timed out!
    [2012.01.03 13:08:04] - [312812] [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [DEBUG] - Before consume MSC Message!
    Edited by: vkonrad on Jan 3, 2012 10:19 AM

  • Webservice Client for PI 7.1?

    Hi,
    I've created successfully a stand-alone WS Client with Netweaver DevStudio for our PI 7.0 system. I use the client to trigger a scenario running over the SOAP adapter. I programmed the client according to the directions in help.sap.com and everything ran fine.
    Next my team installed a PI 7.1 system and I tried to create a new client for this system. I followed the same procedure and was surprised to get the following error when running the new client:
    java.rmi.RemoteException: Service call exception; nested exception is:
         java.lang.Exception:  Endpoint not specified in binding context !
    Message sending finished.
         at de.cephus.webservices.ServiceInterfaceOutSoapPeteBindingStub.ServiceInterfaceOutSoapPete(ServiceInterfaceOutSoapPeteBindingStub.java:72)
         at de.cephus.webservices.PIS_WebService_Client.main(PIS_WebService_Client.java:89)
    Caused by: java.lang.Exception:  Endpoint not specified in binding context !
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1392)
         at de.cephus.webservices.ServiceInterfaceOutSoapPeteBindingStub.ServiceInterfaceOutSoapPete(ServiceInterfaceOutSoapPeteBindingStub.java:67)
         ... 1 more
    Any idea what this could be? Has anyone successfully developed a stand-alone WS Client for a PI 7.1 system? Thanks for your help!
    Peter

    Actually this is the default behavior of SOAP adapter to ask for the PIAPPLUSER. So if u will disable the authentication (through visual admin) then it will be applicable to all soap sender channels.
    You can try the following in a test/dev-system: Extract the SOAP-adapters WAR-file from the corresponding sda. Then extract the deployment-descriptor from the war-file and delete there the related security-constraint, login-config and security-role sections (makes absolutely sense to save the original descriptor beforehand). ZIP the files again with the new deployment descriptor and deploy the SDA via SDM.
    From
    Exposing anonymous WS
    Regards,
    Prateek

  • Problems running DII client for consuming webservices

    Hello webservices experts,
    am running into problems - when I try running my DII client for a webservice that I've successfully deployed on j2sdkee1.4.
    The exception goes like this
    java.rmi.RemoteException: JAXRPC.JAXRPCSERVLET.28: Missing port information
         at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:462)
    I've searched this forum and others as well. Although a lot of people seem to be having this problem nobody seems to have got it solved. Any way out? The client is a mere copy paste of the DII client example in j2eetutorial 1.4

    Solved it ! Some endpoint alias problem during deployment ! Now works fine !

  • JAX-RPC Client for VB-SoapToolkit3.0 WebService

    I need to develop a JAX-RPC client for a VB6.0 WebService (the WebService being generated through MS SoapToolkit3.0).
    I'm using JWSDP 1.0_01. The WSDL that the JWSDP is using to generate the stubs is the one generated by the MS SoapToolkit. My WebService
    has only one method (Public Test(xpto As String)As String) that receives and returns a string.
    So what's the problem:
    - JAX-RPC client sends a SOAP packet different than what the WebService expects, especially in the namespaces. JAX-RPC generates some strange namespaces, like xmlns:ns0="xpto" (xpto is the name of the argument of the WebService) or xmlns:ns1="Result xpto"
    - Looking at the JAX-RPC generated WebService interface, I see that instead of String, the method test receives a StringHolder (???). What's a string holder, and why isn't a String?
    The resumed message returned by the WebService:
    <mserror:description>WSDLReader:None of the matching operations for soapAction http://tempuri.org/Test/action/WS.Test could successfully load the incoming request. Potential typemapper problem HRESULT=0x80070057: The parameter is incorrect.
    - Server:One of the parameters supplied is invalid. HRESULT=0x80070057: The parameter is incorrect.
    </mserror:description>
    Any help would be apreciated.
    Thanks

    Can you send the WSDL that you used to generate the JAXRPC client?
    Thanks

  • Dynamic web-client for WebService

    Hi All,
    I want to create a generic Web Client for various in-house webservices.
    The page to prepare and submit SOAP request to the WebService should be dynamically formed according to the WSDL, so that I dont have to write new html/jsp page for each new WebService.
    Can you suggest any library to achieve this?
    Thanks in Advance..

    hello
    even if you use html client you wanna allow access on ldap server box and port in the firewall.

  • Issue with generation of document/literal type WSDL using Axis

    Hi All,
    I am trying to convert some Java code into WSDL using Axis 1.2 framework. I used Document/Literal style for binding.
    One of the methods in my Java code returns an array. This array is described in Axis generated WSDL as follows:
    <complexType name="ArrayOfThings">
    <complexContent>
    <restriction base="soapenc:Array">
    <attribute ref="soapenc:arrayType" wsdl:arrayType="impl:Things[]"/>
    </restriction>
    </complexContent>
    </complexType>
    But the end user(client for the web service I am hosting) says " .NET won't allow him to consume my webservice (or generate the proper reference classes) for types that derive from encoded types".
    So my question is "Would it be possible to change the webservice so that it doesn’t use that(soapenc) implementation of the array?"
    The end user is expecting something more like this:
    <s:complexType name="ArrayOfThings">
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="unbounded" name="Things" nillable="true" type="tns:Things" />
    </s:sequence>
    </s:complexType>
    I am new to Web Services. So any help or guidance would be greatly appreciated.
    Thanks,
    Scott.

    Hi Dragana,
    We definitely support the ability to call a web service that exposes two operations (document/literal or not).
    Glancing through your WSDL, it looks good.
    Could you please try to tunnel the second request and see 1) what data is sent to the service and 2) what data is returned by the service?
    Can you please email us a reproduceable case so that we can help troubleshoot in parallel?
    Thank you,
    Edwin
    [email protected]
    please rename .zip to .zap

Maybe you are looking for

  • File/FTP O/S Commands in adapter

    I am using PI7.0 SP10, and trying to use the "quote site filename" command to see the original filenames.  There is a shared mailbox and I only need to get a certain filename pattern. There are 50 documents in the mailbox, but the adapter is not pick

  • Connecting my ipod to windows after replacing screen

    after i correctly replaced the screen for my 5th generation ipod it wouldn't appear on windows when hooked up or charge, but when you try a wall charger it is fine. i've tried different wires and different computers and apple won't help me fix it. he

  • What if I uninstall/reinstall

    I cannot find my library or music anywhere since updated Itunes 8 and then the Ipod freezing and having to restore it so have lost all newly purchased product which was on Itunes 7. Have been reading many discussions and wondering if it would be wort

  • How to pass parameters to a SQL query or Data template

    Hi, The requirement is that my final report will take 'date' as input from the user and print only those records which have date later than the user-supplied 'date'. ('Date' is a field in the database). I know the way to achieve this is to use user-d

  • EBXML IN SAP XI

    Hello Forum,            Can anyone guide me about the use of EBXML, in sap xi, how they are handled and whats the scope of it. Can we handle it at the adapter level, i have seen a pdf on 3rd party adapter. Any other Guides or have anyone worked with