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 !

Similar Messages

  • 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

  • Problems running JSP Client for ApplicationModule

    Hi All,
    I'm still having trouble getting a simple JSP client up and running for an AppModule. The AppModule tests okay using the java client, but when I try to run the main.jsp for my Module, it starts up with the following error. I've tried building several projects and have had no success with JSP.
    Does this really work? Has anyone here successfully gotten a JSP Client running?
    Thanks,
    Rich
    AppAccelerator(tm) 1.1.8 for Java (JDK 1.1), x86 version.
    Copyright (c) 1997-1998 Borland International. All Rights Reserved.
    Copyright (c) 1997-1999 Oracle Corporation. All Rights Reserved.
    log3: oracle.jsp.runner.JspRunner: init
    log3: Loading from CLASSPATH backend_AppModule.properties
    log3: Diagnostics: Routing diagnostics to standard output (use -Djbo.debugoutput
    =silent to remove)
    [0] Diagnostic Properties: (from /oracle/jbo/common/Diagnostic.properties)log3:
    [1] Timing:false Functions:false Linecount:true Threshold:6log3:
    [2] CSMessageBundle (language base) being initializedlog3:
    log3: oracle.jbo.ApplicationModuleCreateException: JBO-25222: Unable to create a
    pplication module.
    log3: at oracle.jbo.server.ApplicationModuleHomeImpl.create(Compiled Code)
    log3: at oracle.jbo.common.appmgr.AppModuleInfo.getReservedAppModuleInstance(C
    ompiled Code)
    log3: at oracle.jbo.common.appmgr.AppRegistry.getAppModuleInstance(Compiled Co
    de)
    log3: at oracle.jbo.html.jsp.JSPApplicationRegistry.registerApplicationFromPro
    pertyFile(Compiled Code)
    log3: at oracle.jbo.html.jsp.JSPApplicationRegistry.registerApplicationFromPro
    pertyFile(Compiled Code)
    log3: at webapp1.main._jspService(main.jsp:7)
    log3: at oracle.jsp.runtime.HttpJsp.service(Compiled Code)
    log3: at oracle.jsp.runner.JspRunner.dispatch(Compiled Code)
    log3: at oracle.jsp.runner.JspRunner.service(Compiled Code)
    log3: at javax.servlet.http.HttpServlet.service(Compiled Code)
    log3: at oracle.lite.web.JupServlet.service(Compiled Code)
    log3: at oracle.lite.web.MimeServletHandler.handle(Compiled Code)
    log3: at oracle.lite.web.JupApplication.service(Compiled Code)
    log3: at oracle.lite.web.JupAppHandler.handle(Compiled Code)
    log3: at oracle.lite.web.HTTPServer.include(Compiled Code)
    log3: at oracle.lite.web.HTTPServer.forward(Compiled Code)
    log3: at oracle.lite.web.HTTPServer.handleRequest(Compiled Code)
    log3: at oracle.lite.web.JupServer.handle(Compiled Code)
    log3: at oracle.lite.web.JupHTTPListener$JupHTTP.run(Compiled Code)
    log3: oracle.lite.web.workspace.WorkSpaceDevel: init

    Is the Appmodule running locally or as EJB in Oracle8i.
    Unable to create appmodule genrally is result of not all the required libraries in classpath.
    If you have deployed as EJB then in the project properties make sure that JBOEJBCLIENT and EJBSTUBS(Generated during deployment) are on top of the list.
    If this is not the scenario, give more details on your env.
    raghu
    null

  • Problem in DII client while using custome type

    Hi All,
    I am accessing a webservice using JAX-RPC DII cleint. Webserviuce is deployed on a websphere app server 6.0
    In Webservice i have 1 complextype called Address.
    When i try to call the webservice and try to pass the complex type as parameter to web service i get deserialization error for complexType.
    I tried to register it using TypeMappingRegistry but again iam getting
    exception like "you can't modify default typemapping".
    here is my code
    public class DIITip implements SerializerConstants {
    public static void main(String args[]) {
    try {
    QName serviceName = new QName("http://localhost:9080/AddressBookService/services/AddressBook/wsdl/AddressBook.wsdl","AddressBookService");
    ServiceFactory factory = ServiceFactory.newInstance();
    Call call = service.createCall();
    QName operationName = new QName("http://addr","setAddressFromName");
    call.setOperationName(operationName);
    // The input parameter
    call.addParameter(
    "arg_0_1", // parameter name
    QNAME_TYPE_CPLX_TYPE, // parameter XML type QName
    Address.class, // parameter Java type class
    ParameterMode.IN); // parameter mode
    // The return
    call.setReturnType(XMLType.XSD_BOOLEAN);
    // The operation is an RPC-style operation.
    call.setProperty(Call.OPERATION_STYLE_PROPERTY,"rpc");
    call.setProperty(Call.ENCODINGSTYLE_URI_PROPERTY,"http://schemas.xmlsoap.org/soap/encoding/");
    call.setTargetEndpointAddress("http://localhost:9080/AddressBookService/services/AddressBook");
                   Address addr = new Address();
                   addr.setStreetName("Jogesh");
                   addr.setCity("Puri");
                   addr.setState("Orisaa");               
         TypeMappingRegistry registry = service.getTypeMappingRegistry();
         TypeMapping mapping2 = registry.getTypeMapping("");
         TypeMapping typeMapping = registry.getTypeMapping(SOAPConstants.URI_ENCODING);
    QName type = new QName("http://addr", "Address");
    CombinedSerializer serializer = new addr.Address_SOAPSerializer(type,
    ENCODE_TYPE, NULLABLE, SOAPConstants.NS_SOAP_ENCODING);
    serializer = new ReferenceableSerializerImpl(SERIALIZE_AS_REF, serializer);
    registerSerializer(typeMapping,addr.Address.class, type, serializer);
    // Invoke the operation
    Object[] actualArgs = {addr};
    Boolean obj = (Boolean) call.invoke(actualArgs);
                   if (null!= obj)
                        System.out.println(obj.getStreetName()+" "+obj.getCity()+" "+obj.getState());
                   }else
                        System.out.println("Obj is null");
    catch (Throwable t) {
    t.printStackTrace();
    private static void registerSerializer(TypeMapping mapping, Class javaType, QName xmlType,
    Serializer ser) {
    mapping.register(javaType, xmlType, new SingletonSerializerFactory(ser),
    new SingletonDeserializerFactory((Deserializer)ser));
    Anybody know how to register/use complext type while using DII client
    Many thanks for any help offered.
    capri

    Hey Capri,
    did you solved your problem?
    I' am also looking for a solution to add complex Types.
    I use webservices with apache axis. There I don't have to add the parameter to the call object. In the server-config.wsdd, there are all information about the complex type. So I only have to invoke webservice with my object.
    But now I want to invoke a BPEL-Process as webservice. I think at this term I have to add the parameter to the call object.
    regards,
    kirie

  • Using Studio to develop DII Client for DiningGuide example

    Hi,
    I am trying to develop a DII client to the DiningGuide example from the Java Studio Enterprise Tutorials and Code Camps:
    http://developers.sun.com/prodtech/javatools/jsenterprise/learning/tutorials/index.html
    I am using Studio6 with Application Server 7 update 3 with Java WSDP 1.3 [JAX-RPC 1.1 support]
    The question is how does Studio support JAX-RPC DII client development ? I understand that the config.xml file is different between Static stub based client and a DII client. Please let me know as to how to configure
    Studio to do this.
    Below is the code that is new in the DIIClient shown in 3 sections:
    - imports area in CustomerReviewTable.java
    - getCustomerReviewByName method in CustomerReviewTable.java
    [Basically taking the code from
    http://java.sun.com/webservices/docs/1.0/tutorial/doc/JAXRPC6.html#75222
            and modifying this to use this service and make appropriate
    changes for the return value (Vector).
            I suspect that this is where the problem is but need help to fix
    it. - Thanks!!]
    - Variables declaration new for DIIClient
    - The WSDL for the DGWebService service is also shown
    I tried it with both JAXRPC 1.0 and JAXRPC 1.1 [Setting this for the
    Service in Studio 6] and regenerating the Service code
    but did not see any difference.
    Right now, with the code shown below, I do not get any exceptions, but
    it doesnot show any reviews [Vector returned is null].
    Really appreciate your help,
    Sridhar.
    ============ imports area in CustomerReviewTable.java ===============
    package DIIClient;
    import javax.swing.table.*;
    import java.util.*;
    import WebService.DGWebServiceClientGenClient.*;
    /* New for DII */
    import javax.xml.rpc.Call;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.JAXRPCException;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.ParameterMode;
    ========= getCustomerReviewByName method in CustomerReviewTable.java
    =========
    private Vector getCustomerReviewByName(java.lang.String
    restaurantname) {
    Vector custList = new Vector();
    try {
    /* Old Static Stub in the Swing Client that works:
    WebService.DGWebServiceClientGenClient.DGWebService service2
    = new
    WebService.DGWebServiceClientGenClient.DGWebService_Impl();
    WebService.DGWebServiceClientGenClient.DGWebServiceServantInterface
    port = service2.getDGWebServiceServantInterfacePort();
    custList =
    (java.util.Vector)port.getCustomerreviewsByRestaurant(restaurantname);
    /* New DII Code below ... */
    System.out.println("Now using DII Code ...");
    ServiceFactory factory = ServiceFactory.newInstance();
    Service service = factory.createService(new
    QName(qnameService));
    QName port = new QName(qnamePort);
    Call call = service.createCall(port);
    call.setTargetEndpointAddress(endPointAddress);
    call.setProperty(Call.SOAPACTION_USE_PROPERTY, new
    Boolean(true));
    call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
    call.setProperty(ENCODING_STYLE_PROPERTY, URI_ENCODING);
    QName QNAME_TYPE_STRING = new QName(NS_XSD, "string");
    QName QNAME_TYPE_VECTOR = new QName(NS_XSD, "vector");
    call.setReturnType(QNAME_TYPE_VECTOR);
    call.setOperationName(new QName(BODY_NAMESPACE_VALUE,
    "getCustomerreviewsByRestaurant"));
    call.addParameter("String_1", QNAME_TYPE_STRING,
    ParameterMode.IN);
    String[] params = { restaurantname };
    custList = (java.util.Vector) call.invoke (params);
    System.out.println(custList);
    catch (Exception ex) {
    System.err.println("Caught an exception." );
    ex.printStackTrace();
    return custList;
    ============ Variables declaration new for DIIClient ====================
    //Variables declaration new for DIIClient
    private static String qnameService = "DGWebService";
    private static String qnamePort = "DGWebServiceServantInterface";
    private static String endPointAddress =
    "http://localhost:80/DGWebService/DGWebService";
    private static String BODY_NAMESPACE_VALUE = "urn:DGWebService/wsdl";
    private static String ENCODING_STYLE_PROPERTY =
    "javax.xml.rpc.encodingstyle.namespace.uri";
    // private static String NS_XSD = "http://www.w3.org/2001/XMLSchema";
    private static String NS_XSD =
    "http://java.sun.com/jax-rpc-ri/internal";
    private static String URI_ENCODING =
    "http://schemas.xmlsoap.org/soap/encoding/";
    //http://schemas.xmlsoap.org/soap/encoding/
    //http://java.sun.com/jax-rpc-ri/internal
    ============ The WSDL for the DGWebService service =================
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="DGWebService" targetNamespace="urn:DGWebService/wsdl"
    xmlns:tns="urn:DGWebService/wsdl"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:ns2="http://java.sun.com/jax-rpc-ri/internal"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:ns3="urn:DGWebService/types">
    <types>
    <schema targetNamespace="http://java.sun.com/jax-rpc-ri/internal"
    xmlns:tns="http://java.sun.com/jax-rpc-ri/internal"
    xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
    <import namespace="urn:DGWebService/types"/>
    <complexType name="vector">
    <complexContent>
    <extension base="tns:list">
    <sequence/></extension></complexContent></complexType>
    <complexType name="list">
    <complexContent>
    <extension base="tns:collection">
    <sequence/></extension></complexContent></complexType>
    <complexType name="collection">
    <complexContent>
    <restriction base="soap11-enc:Array">
    <attribute ref="soap11-enc:arrayType"
    wsdl:arrayType="anyType[]"/></restriction></complexContent></complexType></schema>
    <schema targetNamespace="urn:DGWebService/types"
    xmlns:tns="urn:DGWebService/types"
    xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
    <import namespace="http://java.sun.com/jax-rpc-ri/internal"/>
    <complexType name="CustomerreviewDetail">
    <sequence>
    <element name="customername" type="string"/>
    <element name="restaurantname" type="string"/>
    <element name="review" type="string"/>
    <element name="sampleProperty"
    type="string"/></sequence></complexType>
    <complexType name="RestaurantDetail">
    <sequence>
    <element name="address" type="string"/>
    <element name="cuisine" type="string"/>
    <element name="description" type="string"/>
    <element name="neighborhood" type="string"/>
    <element name="phone" type="string"/>
    <element name="rating" type="int"/>
    <element name="restaurantname" type="string"/>
    <element name="sampleProperty"
    type="string"/></sequence></complexType></schema></types>
    <message name="DGWebServiceServantInterface_createCustomerreview">
    <part name="String_1" type="xsd:string"/>
    <part name="String_2" type="xsd:string"/>
    <part name="String_3" type="xsd:string"/></message>
    <message
    name="DGWebServiceServantInterface_createCustomerreviewResponse"/>
    <message name="DGWebServiceServantInterface_getAllRestaurants"/>
    <message name="DGWebServiceServantInterface_getAllRestaurantsResponse">
    <part name="result" type="ns2:vector"/></message>
    <message name="DGWebServiceServantInterface_getCustomerreviewDetail"/>
    <message
    name="DGWebServiceServantInterface_getCustomerreviewDetailResponse">
    <part name="result" type="ns3:CustomerreviewDetail"/></message>
    <message
    name="DGWebServiceServantInterface_getCustomerreviewsByRestaurant">
    <part name="String_1" type="xsd:string"/></message>
    <message
    name="DGWebServiceServantInterface_getCustomerreviewsByRestaurantResponse">
    <part name="result" type="ns2:vector"/></message>
    <message name="DGWebServiceServantInterface_getRestaurantDetail"/>
    <message name="DGWebServiceServantInterface_getRestaurantDetailResponse">
    <part name="result" type="ns3:RestaurantDetail"/></message>
    <portType name="DGWebServiceServantInterface">
    <operation name="createCustomerreview" parameterOrder="String_1
    String_2 String_3">
    <input
    message="tns:DGWebServiceServantInterface_createCustomerreview"/>
    <output
    message="tns:DGWebServiceServantInterface_createCustomerreviewResponse"/></operation>
    <operation name="getAllRestaurants">
    <input message="tns:DGWebServiceServantInterface_getAllRestaurants"/>
    <output
    message="tns:DGWebServiceServantInterface_getAllRestaurantsResponse"/></operation>
    <operation name="getCustomerreviewDetail">
    <input
    message="tns:DGWebServiceServantInterface_getCustomerreviewDetail"/>
    <output
    message="tns:DGWebServiceServantInterface_getCustomerreviewDetailResponse"/></operation>
    <operation name="getCustomerreviewsByRestaurant"
    parameterOrder="String_1">
    <input
    message="tns:DGWebServiceServantInterface_getCustomerreviewsByRestaurant"/>
    <output
    message="tns:DGWebServiceServantInterface_getCustomerreviewsByRestaurantResponse"/></operation>
    <operation name="getRestaurantDetail">
    <input
    message="tns:DGWebServiceServantInterface_getRestaurantDetail"/>
    <output
    message="tns:DGWebServiceServantInterface_getRestaurantDetailResponse"/></operation></portType>
    <binding name="DGWebServiceServantInterfaceBinding"
    type="tns:DGWebServiceServantInterface">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
    style="rpc"/>
    <operation name="createCustomerreview">
    <soap:operation soapAction=""/>
    <input>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></input>
    <output>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></output></operation>
    <operation name="getAllRestaurants">
    <soap:operation soapAction=""/>
    <input>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></input>
    <output>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></output></operation>
    <operation name="getCustomerreviewDetail">
    <soap:operation soapAction=""/>
    <input>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></input>
    <output>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></output></operation>
    <operation name="getCustomerreviewsByRestaurant">
    <soap:operation soapAction=""/>
    <input>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></input>
    <output>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></output></operation>
    <operation name="getRestaurantDetail">
    <soap:operation soapAction=""/>
    <input>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></input>
    <output>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></output></operation></binding>
    <service name="DGWebService">
    <port name="DGWebServiceServantInterfacePort"
    binding="tns:DGWebServiceServantInterfaceBinding">
    <soap:address
    location="http://localhost:80/DGWebService/DGWebService"/></port></service></definitions>
    =================================================================

    you may have a little better luck in the JNI forum.

  • Problem: Run Time Evaluation for Future Period

    Hi SAP Gurus, can someone help me solving this problem:
    My client need to run time evaluation for 2-months period ahead of time. But every time I tried, time evaluation always stops at end of the current month, no further dates in the future. I had created attendance data 2002 for all the future dates. IT7, 2002, 2006 and all configurations seem to be OK (T510S,T569R). Test run is also OK with good future results. What could possibly be missing? Thank you in advance.
    Bill

    Thank you very much, Arun, Banu, Stefan and Om.
    Yes, I have entered the "Evaluation up to" date (60 days later);
    The schema has a function "Check FUT".
    Test future run result was generated correctly.
    Still I can't have future results in real run.
    So, what else I should check into?
    Thanks again.
    Bill

  • Problem running Java client of EJB deployed on WebSphere

    Hi,
    I am using websphere studio 5.1.2 with fix pack 3. I have a sample Stateless Session Bean (EJB) deployed and running on websphere.
    I wrote a small Java client program as below.
    import java.util.Hashtable;
    import HelloJavaHome;
    import HelloJava;
    import javax.naming.InitialContext;
    import javax.naming.Context;
    import javax.ejb.EJBHome;
    import javax.ejb.EJBObject;
    public class RemoteConn {
    public static void main(String[] ar) throws Exception{
    String greeting = "";
    try{
    Hashtable env = new Hashtable();
    //env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
    //env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.ejs.ns.jndi.CNInitialContextFactory");
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.ws.naming.util.WsnInitCtxFactory");
    //env.put(Context.PROVIDER_URL, "corbaloc:iiop:myhost.mycompany.com:2809/NameServiceCellPersistentRoot");
    env.put(Context.PROVIDER_URL, "iiop://localhost:2809");
    System.out.println("Before creating context ");
    InitialContext initContext = new InitialContext(env);
    System.out.println("Before looking up HelloJavaHome.");
    //Object obj = initContext.lookup("java:comp/env/ejb/HelloJavaHome");
    Object obj = initContext.lookup("ejb/HelloJavaHome");
    System.out.println("After lookup javahome.");
    HelloJavaHome home = (HelloJavaHome) javax.rmi.PortableRemoteObject.narrow(obj, HelloJavaHome.class);
    HelloJava remote = home.create();
    greeting = remote.getGreeting("John");
    catch(Exception e){
    e.printStackTrace();
    System.out.println("Greeting::"+ greeting);
    I did not have any problem if I write and run this client from Websphere studio environment..
    However its giving lot of compilation and runtime errors when I tried to run from command line.
    I could eliminated compilation errors by setting the below jar files in the classpath.
    testclient.jar; (client jar of my EJB)
    j2ee.jar;
    naming.jar;ras.jar;
    wsexception.jar;
    bootstrap.jar;
    namingclient.jar;
    websphere.jar;server.jar;
    ejbcontainer.jar;
    ecutils.jar;
    Now it is throwing runtime error after the statement, "Before looking up HelloJavaHome.", has printed. Here is the stack trace of exception ..
    Exception in thread "main" java.lang.NoClassDefFoundError: com.ibm.CORBA.iiop.GlobalORBFactory
    at com.ibm.ejs.oa.EJSORBImpl.class$(EJSORBImpl.java:44)
    at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:195)
    at com.ibm.ejs.oa.EJSClientORBImpl.(EJSClientORBImpl.java:93)
    at com.ibm.ejs.oa.EJSClientORBImpl.(EJSClientORBImpl.java:65)
    at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:385)
    at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:284)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:369)
    at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:112)
    at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:422)
    at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:143)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at RemoteEJBConn.main(RemoteEJBConn.java:38)
    I appreciate if sombody could help me ASAP fixing this problem.
    Thanks in advance.

    Try using the IBM JVM (theres one shipped with WebSphere in websphere_home\AppServer\java
    Also include idl.jar and ffdc.jar on the classpath

  • Problem using application client for local stateful session bean

    Hi,
    I have deployed a local stateful session bean in Sun J2EE 1.4 application server.
    On running the applclient for the stateful session bean application client i get the following error:
    Warning: ACC006: No application client descriptor defined for: [null]
    cant we use application client for local stateful session beans. becoz the application runs smoothly when i changed the stateful sesion bean to remote.

    Hi,
    No, an ejb that exposes a local view can only be accessed by an ejb or web component packaged within the same application. Parameters and return values for invocations through the ejb local view are passed by reference instead of by value. That can't work for an application client since it's running in a separate JVM.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Problem in Wfetch client for Update operations

    Hi,
    I am using the Wfetch client for the 'Update' operation of an RFC Gateway consumption model . But it seems to always give this error : 'HTTP/1.0 400 Bad Request\r\n'
    I have passed only those fields that have been exposed in the GW Data model. Is there anything else that needs to be taken care of ?
    The read and query operations are executed successfully though.
    Thanks,
    Shubhada

    Hi Shubhada,
    Just recheck two things in Wfetch with below details.
    1. Check the path. It should be below formate for update operation
    Verb : Put
    Path:  /sap/opu/sdata/sap/<CONSUM_MODEL>/<data_model>Collection(value='  ',scheme_id='<DATA_MODEL>',scheme_agency_id='  ')?sap-client=< >&$format=xml
    Above formate you can take from Read operation which you already executed successfully.
    2. Check the XML formate on right handside in Wfetch it should be header & body with below details.
    Xml Formate:
    x-requested-with: XMLHttpRequest\r\n
    \r\n
    <?xml version="1.0" encoding="utf-8" standalone="yes"?>\r\n
      <entry xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom">\r\n
          <content type="application/xml">\r\n
            <m:properties>\r\n
       <d:value> </d:value> \r\n
      <d:scheme_id> </d:scheme_id> \r\n
      <d:scheme_agency_id> </d:scheme_agency_id> \r\n
    Just copy from read operation Read operation which you already executed successfully. And update the fields what you required.
    </m:properties>\r\n
          </content>\r\n
    </entry>\r\n
    Hope you this will help above information.
    Thanks & Regards,
    Mahesh Devershetty

  • DII client for accessing a document style web service

    Hi All,
    I try to access a document style web service using DII JAX-RPC client and used the wscompile tool to produce wrapper classes .
    The following code I used for my work:
    import java.rmi.RemoteException;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.Call;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.encoding.XMLType;
    import javax.xml.rpc.ParameterMode;
    import java.net.URL;
    import nutrient.*;
    public class NuDII{
    private static String endpoint =
    "http://www.strikeiron.com/webservices/usdadata.asmx?wsdl";
    private static String qnameService = "USDAData";
    private static String qnamePort = "USDADataSoap";
    private static String BODY_NAMESPACE_VALUE =
    "http://www.strikeiron.com/";
    private static String ENCODING_STYLE_PROPERTY =
    "javax.xml.rpc.encodingstyle.namespace.uri";
    private static String NS_XSD =
    "http://www.w3.org/2001/XMLSchema";
    private static String URI_ENCODING =
    "http://schemas.xmlsoap.org/soap/encoding/";
    private static String TYPE_NAMESPACE_VALUE =
    "http://www.strikeiron.com/";
    private static QName returnType = new QName(NS_XSD, "string");
    public static void main(String[] args) {
    try {
    ServiceFactory factory = ServiceFactory.newInstance();
    Service service = factory.createService(new QName(BODY_NAMESPACE_VALUE,qnameService));
    QName port = new QName(BODY_NAMESPACE_VALUE,qnamePort);
    QName operation = new QName(BODY_NAMESPACE_VALUE,"SearchFoodByDescription");
    Call call = service.createCall(port,operation);
    call.setTargetEndpointAddress(endpoint);
    call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
    call.setProperty(Call.SOAPACTION_URI_PROPERTY,"http://www.strikeiron.com/SearchFoodByDescription");
    call.setProperty(Call.ENCODINGSTYLE_URI_PROPERTY,"");
    call.setProperty(Call.OPERATION_STYLE_PROPERTY, "document");
    QName QNAME_TYPE_STRING = new QName(NS_XSD, "string");
    QName REQUEST_QNAME = new QName(TYPE_NAMESPACE_VALUE,"SearchFoodByDescription");
    QName RESPONSE_QNAME = new QName(TYPE_NAMESPACE_VALUE, "SearchFoodByDescriptionResponse");
    call.setReturnType(RESPONSE_QNAME, nutrient.SearchFoodByDescriptionResponse.class);
    //call.setReturnType(stringArray);
    call.setOperationName(new QName(BODY_NAMESPACE_VALUE,"SearchFoodByDescription"));
    call.addParameter("FoodKeywords", REQUEST_QNAME,nutrient.SearchFoodByDescription.class,ParameterMode.IN);
    call.addParameter("FoodGroupCode", REQUEST_QNAME, nutrient.SearchFoodByDescription.class,ParameterMode.IN);
    SearchFoodByDescription sfd = new SearchFoodByDescription("BabyFoods","1900");
    //Object[] params = new Object[2];
    //params[0]= new String("BabyFoods");
    //params[1]= new String("1900");try
    Object[] params = {sfd};
    Object result = call.invoke(params);
    System.out.println(result);
    } catch (Exception ex) {
    ex.printStackTrace();
    when I start to execute the client I got the following error:
    java.rmi.RemoteException: Server was unable to process request. --> Object refer
    ence not set to an instance of an object.
    at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:462)
    at NuDII.main(NuDII.java:68)
    Shall any body assist me to solve problem.

    you may have a little better luck in the JNI forum.

  • How to supply username and password for consuming webservice in BizTalk Adaptor?

    While I hit the web service directly , I am able get response from that service, it asked for username and password, after that it processed the request and gave expected output. I am trying to consume the same web service (https) from BizTalk orchestration
    ,  it created message type , port type, binding for me , all fine, but while sending message to the webservice , it throws error like this 
    <SOAP-ENV:Fault xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wd="urn:com.abc/bsvc">
    <faultcode>SOAP-ENV:Client.authenticationError</faultcode>
    <faultstring>invalid username or password</faultstring>
    </SOAP-ENV:Fault>
    I have given username and passoword in port level. I tried basic binding, I also tried wcf_basic binding , but no luck. These bindings were generated by wizard only, I Imported those bindings , ports got created, I just added username and password in the
    port level.
    How should I supply username and password in BizTalk to get this working ? Any inputs would be greatly appriciated
    Regards
    Vivek

    Hi,
    the way to resolve this is to write a Wcf Custom Behavior.
    Several people have blogged about this and Microsoft have written some articles:
    http://social.technet.microsoft.com/wiki/contents/articles/627.using-custom-behaviors-with-the-biztalk-wcf-adapters-part-2.aspx
    http://msdn.microsoft.com/en-us/library/cc952299(v=bts.10).aspx
    The articles are old so you need to verify they still apply.
    mark

  • RUNNING PROXY CLIENT FOR X.509 CERTIFICATE WEB SERVICE THROWS SOAPFAULTEXCE

    Hi all!
    I have a problem on securing my web service.
    It's written: "Policy requires confidentialityenc key : 0"
    I found a few information here:
    https://metalink2.oracle.com/metalink/plsql/f?p=130:15:9796228426720331207::::p15_database_id,p15_docid,p15_show_header,p15_show_help,p15_black_frame,p15_font:BUG,7260434,1,1,1,helvetica
    Is it a bug? Please advice.

    Hi Talimeren,
    when you want to use certificates you have to setup SSL which you've started already. You have to get and import a server certificate which authenticates the server while the client creates a SSL connection. The cert has to assigned to the SSL port. For NW04 you can find the guide here http://help.sap.com/saphelp_nw04/helpdata/en/f1/2de3be0382df45a398d3f9fb86a36a/frameset.htm
    If you want client authentication by certificates as well you have to import at least one root certificate from a certficate authority (CA) which you trust and by which all user certificates are signed.
    SAP delivers the IAIK library for WebAS security, but this depends on your WebAS version and installation. I suggest you setup SSL and try to make a connection. If the connection can be made, the security library should be there.
    HTH
    Daniel
    Message was edited by: Correct Link
            Daniel Sass

  • Problems running the installer for Elements 11 - Mac

    Mac OS10.8.3
    15" Retina 2.7GHz  16GB RAM
    I have downloaded the installation file for Elements 11 using the Adobe Installer; upon running the installer I get an invalid checksum error.  Tried repeated times, same result.  Tried disabling checksum check in disk utility, lets me get one step futther to see the installer package contents upon mounting the .dmg.  When I run the installer, error message appears as follows;
    Failed to initialise Installer
    I got a message to install the Adobe Support Advisor, which I did.  I ran it, and it did not detect any issues. 
    Have also tried using disk utility to verify and repair the downlaoded adobe dmg before mounting it - no change in the error when I try to run the installer.
    Any advice?
    Thanks, JB.

    Please try initiating a direct download using the steps listed at http://prodesigntools.com/photoshop-elements-11-direct-download-links-pse-premiere-pre.htm l.  Please make sure to complete the Very Important Instructions section prior to clicking on the download link.
    If you continue to receive a message stating that your checksum is invalid then please try an alternate Internet connection.

  • Problem running Illustrator CS6 for the first time

    Hi!
    I just installed Illustrator CS6 from the Creative Cloud and the following message appears as I try to start the program "Unable to set maximum number of files to be opened" and then it closes again.
    Can somebody help me?
    Many thanks!

    This was a known bug for some users in 16.0.0. It seems to have gotten fixed in the latest update (16.1.0) that was released end August. Run the update (look under Help > Updates) and hopefully this issue should get resolved.

  • SOAMANGER Settings for Consuming WebService

    HI,
    I am consuming a web service in SAP and need to create logical port details.
    Since LPCONFIG is obsolete now, I am thinking of creating the logical port config details in SOAMANAGER.
    Could anyone please tell me the procedure for manual port configuration process?
    Thanks.

    Thread locked.
    A simple search on SDN will provide you with these details, one possible thread for example:
    [create logical port via http dest on soamanager;
    OR
    [http://help.sap.com/saphelp_nw70/helpdata/en/9e/c7a3591dc74a679bbc9716354e42af/content.htm]
    Regards, Trevor

Maybe you are looking for

  • Problem with reading Dynpro fields

    Hi, I have some tabstrips. On each tabstrip, I have a container for an ALV and on the bottom I have another subscreen for some input fields. Under the subscreen I have some buttons to insert, delete etc... The fields in my subscreen I have bound to D

  • Server side rule - inline forwarding of a message

    We have a solution that generates custom x-header on all emails (via an Outlook Add-in).  Using Outlook, User A creates a server-side rule which forwards messages onto User B.  User B receives a message without the custom x-header.  My question is ho

  • Automatically rename photos?

    HI All, I have moved from a Samsung S2 to the Xperia Z1 and I think it is a brilliant phone but............. The problem I have is that I use it daily to take photos at work, and after I have taken a batch of photos I connect it to my pc and cut & pa

  • How do I achieve Full peace of mind on a tight Budget?

    I am looking to complete an Open Directory Project with managed Network Directories and Networked Home directories. 3TB of available storage should be sufficient (for now). I will be moving users who are use to having their Macs set up as home comput

  • NWBC 4.0 is unstable on IE11

    Hi, I am using Windows 7 and Internet Explorer 11. I have already installed Netweaver Business Client 4.0 for desktop. Initially, I have accessed to CRM Ides system. But when I logout from NWBC and retry to access, I am getting this error; 'You are c