Webservice problem

When i try to use a webservice from my .net application, i get the following error
Exception:  u201CPossible SOAP version mismatch: Envelope namespace http://schemas.xmlsoap.org/wsdl/ was unexpected. Expecting http://schemas.xmlsoap.org/soap/envelope/.u201D
This webservice was generated from an RFC function module.
what is the solution.
Thanks for your help in advance.
Regards,
Srikanth.
Edited by: Srikanth Grandhe on Nov 21, 2008 2:22 PM

Check SAP Note .. 738912
Here instead of http://schemas.xmlsoap.org/wsdl/ ... use
http://schemas.xmlsoap.org/soap/envelope/.u201D
*Additional prefix declaration has to be added into <wsdl:definitions> element of main.wsdl: For soap
binding you have to add the following prefix declaration:
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/". For http and mime binding you have to add the following prefixes declarations: xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/http/"*

Similar Messages

  • WebService problem in java

    Hi All,
    Me facing a problem related to java web services.I am using jdk-6u3,Eclipse and Tomcat 5.0.I am making the web service of WsEpp Class shown below
    @WebService
    public class WsEpp
    EppService objcls;
    @WebMethod
    public int registerDomain(String ACTIVITY_ID,String DOMAIN_NAME,String DOMHOSTNAME1,
    String DOMSERVER_IP_ADDRESS1,String DOMHOSTNAME2,String DOMSERVER_IP_ADDRESS2,
    String DOM_MX ,String DOM_MX_IP,String DOM_REGISTRAR,String DOM_RCONTACTID,
    String DOM_ACONTACTID,String DOM_BCONTACTID,String DOM_TCONTACTID,String DOM_AUTHCODE,
    String DOM_CURRENT_REGISTRAR,String DOM_AUTHORIZATION_CODE,String DOM_REG_FIRSTNAME,
    String DOM_REG_LASTNAME,String DOM_REG_EMAIL,String DOM_REG_COMPANY_NAME,String DOM_REG_ADDRESS,String DOM_REG_CITY,String DOM_REG_COUNTRY,String DOM_REG_STATE,String DOM_REG_ZIP,String DOM_REG_PHONE,String DOM_REG_COUNTRY_CODE,String DOM_REG_AREA_CODE,String DOM_REG_FAX,String DOM_REG_MOBILE,String DOM_ADM_FIRST_NAME,String DOM_ADM_LAST_NAME,String DOM_ADM_EMAIL,String DOM_ADM_ADDRESS,String DOM_ADM_CITY,String DOM_ADM_COUNTRY,String DOM_ADM_STATE,String DOM_ADM_ZIP,String DOM_ADM_PHONE,String DOM_ADM_COUNTRY_CODE ,String DOM_ADM_AREA_CODE,String DOM_ADM_FAX,String DOM_ADM_MOBILE,String DOM_BILL_FIRST_NAME,String DOM_BILL_LAST_NAME,String DOM_BILL_EMAIL,String DOM_BILL_ADDRESS,String DOM_BILL_CITY,String DOM_BILL_COUNTRY,String DOM_BILL_STATE,String DOM_BILL_ZIP,String DOM_BILL_PHONE,String DOM_BILL_COUNTRY_CODE,String DOM_BILL_AREA_CODE,String DOM_BILL_FAX ,
    String DOM_BILL_MOBILE,String DOM_TECH_FIRST_NAME,String DOM_TECH_LAST_NAME,String DOM_TECH_EMAIL,String DOM_TECH_ADDRESS,String DOM_TECH_CITY,String DOM_TECH_COUNTRY,String DOM_TECH_STATE,String DOM_TECH_ZIP,String DOM_TECH_PHONE,String DOM_TECH_COUNTRY_CODE,String DOM_TECH_AREA_CODE,String DOM_TECH_FAX,String DOM_TECH_MOBILE ,int DURATION)
    objcls=new EppService();
    int result=objcls.createDomain(ACTIVITY_ID,DOMAIN_NAME,DOMHOSTNAME1,DOMSERVER_IP_ADDRESS1,
    DOMHOSTNAME2,DOMSERVER_IP_ADDRESS2,DOM_MX,DOM_MX_IP,DOM_REGISTRAR,
    DOM_RCONTACTID,DOM_ACONTACTID,DOM_BCONTACTID,DOM_TCONTACTID,
    DOM_AUTHCODE,DOM_CURRENT_REGISTRAR,DOM_AUTHORIZATION_CODE,
    DOM_REG_FIRSTNAME,DOM_REG_LASTNAME,DOM_REG_EMAIL,DOM_REG_COMPANY_NAME,
    DOM_REG_ADDRESS,DOM_REG_CITY,DOM_REG_COUNTRY,DOM_REG_STATE,DOM_REG_ZIP,
    DOM_REG_PHONE,DOM_REG_COUNTRY_CODE,DOM_REG_AREA_CODE,DOM_REG_FAX,
    DOM_REG_MOBILE,DOM_ADM_FIRST_NAME,DOM_ADM_LAST_NAME,DOM_ADM_EMAIL,
    DOM_ADM_ADDRESS,DOM_ADM_CITY,DOM_ADM_COUNTRY,DOM_ADM_STATE,
    DOM_ADM_ZIP,DOM_ADM_PHONE,DOM_ADM_COUNTRY_CODE,DOM_ADM_AREA_CODE,
    DOM_ADM_FAX,DOM_ADM_MOBILE,DOM_BILL_FIRST_NAME,DOM_BILL_LAST_NAME,
    DOM_BILL_EMAIL,DOM_BILL_ADDRESS,DOM_BILL_CITY,DOM_BILL_COUNTRY,
    DOM_BILL_STATE,DOM_BILL_ZIP,DOM_BILL_PHONE,DOM_BILL_COUNTRY_CODE,
    DOM_BILL_AREA_CODE,DOM_BILL_FAX,DOM_BILL_MOBILE,DOM_TECH_FIRST_NAME,
    DOM_TECH_LAST_NAME,DOM_TECH_EMAIL,DOM_TECH_ADDRESS,DOM_TECH_CITY,
    DOM_TECH_COUNTRY,DOM_TECH_STATE,DOM_TECH_ZIP,DOM_TECH_PHONE,DOM_TECH_COUNTRY_CODE,
    DOM_TECH_AREA_CODE,DOM_TECH_FAX,DOM_TECH_MOBILE,DURATION);
    return result;
    The EppService Class is shown below
    public class EppService {
    public int createDomain(String ACTIVITY_ID,String DOMAIN_NAME,String DOMHOSTNAME1,
    String DOMSERVER_IP_ADDRESS1,String DOMHOSTNAME2,String DOMSERVER_IP_ADDRESS2,
    String DOM_MX ,String DOM_MX_IP,String DOM_REGISTRAR,String DOM_RCONTACTID,
    String DOM_ACONTACTID,String DOM_BCONTACTID,String DOM_TCONTACTID,String DOM_AUTHCODE,
    String DOM_CURRENT_REGISTRAR,String DOM_AUTHORIZATION_CODE,String DOM_REG_FIRSTNAME,
    String DOM_REG_LASTNAME,String DOM_REG_EMAIL,String DOM_REG_COMPANY_NAME,String DOM_REG_ADDRESS,String DOM_REG_CITY,String DOM_REG_COUNTRY,String DOM_REG_STATE,String DOM_REG_ZIP,String DOM_REG_PHONE,
    String DOM_REG_COUNTRY_CODE,String DOM_REG_AREA_CODE,String DOM_REG_FAX,String DOM_REG_MOBILE,String DOM_ADM_FIRST_NAME,String DOM_ADM_LAST_NAME,String DOM_ADM_EMAIL,String DOM_ADM_ADDRESS,String DOM_ADM_CITY,String DOM_ADM_COUNTRY,String DOM_ADM_STATE,String DOM_ADM_ZIP,String DOM_ADM_PHONE,
    String DOM_ADM_COUNTRY_CODE ,String DOM_ADM_AREA_CODE,String DOM_ADM_FAX,String DOM_ADM_MOBILE,String DOM_BILL_FIRST_NAME,String DOM_BILL_LAST_NAME,String DOM_BILL_EMAIL,String DOM_BILL_ADDRESS,String DOM_BILL_CITY,String DOM_BILL_COUNTRY,String DOM_BILL_STATE,String DOM_BILL_ZIP,String DOM_BILL_PHONE,String DOM_BILL_COUNTRY_CODE,String DOM_BILL_AREA_CODE,String DOM_BILL_FAX ,
    String DOM_BILL_MOBILE,String DOM_TECH_FIRST_NAME,String DOM_TECH_LAST_NAME,String DOM_TECH_EMAIL,String DOM_TECH_ADDRESS,String DOM_TECH_CITY,String DOM_TECH_COUNTRY,String DOM_TECH_STATE,String DOM_TECH_ZIP,String DOM_TECH_PHONE,String DOM_TECH_COUNTRY_CODE,String DOM_TECH_AREA_CODE,String DOM_TECH_FAX,String DOM_TECH_MOBILE ,int DURATION)
    int x;
    n4i.PrintClass obj_PrintClass= new n4i.PrintClass();
    x =obj_PrintClass.printData(DURATION);
    System.out.println(x);
    return x;
    The PrintClass is as shown below
    public class PrintClass {
    public int printData(int type)
    int str = 0;
    PrintLib obj_PrintLib = new PrintLib();
    switch (type)
    case 1: str = obj_PrintLib.returnTest1("","","","","","","","",
    "","","","","","","","","","","","","",0);
    break;
    case 2: str = obj_PrintLib.returnTest2("","","","","","","","",
    "","","","","","","","","","","","","",0);
    break;
    case 3: str = obj_PrintLib.returnData(3);
    break;
    default: str = 9;
    return str;
    The PrintLib is as shown below
    public class PrintLib {
    private static epp_Command command_data = null;
    private static epp_CheckResult[] check_results = null;
    private static Format df = new SimpleDateFormat(Globals.DATE_TIME_FORMAT);
    public PrintLib()
    System.out.println("CONSTRUCTOR 1");
    this.command_data = new epp_Command();
    System.out.println("CONSTRUCTOR 2");
    public int returnTest1(String ACTIVITY_ID,String DOMAIN_NAME,String DOMHOSTNAME1,
    String DOMSERVER_IP_ADDRESS1,String DOMHOSTNAME2,String DOMSERVER_IP_ADDRESS2,
    String DOM_MX ,String DOM_MX_IP,String DOM_REGISTRAR,String DOM_RCONTACTID,
    String DOM_ACONTACTID,String DOM_BCONTACTID,String DOM_TCONTACTID,String DOM_AUTHCODE,
    String DOM_CURRENT_REGISTRAR,String DOM_AUTHORIZATION_CODE,String DOM_REG_FIRSTNAME,
    String DOM_REG_LASTNAME,String DOM_REG_EMAIL,String DOM_REG_COMPANY_NAME,String DOM_REG_ADDRESS,String DOM_REG_CITY,String DOM_REG_COUNTRY,String DOM_REG_STATE,String DOM_REG_ZIP,String DOM_REG_PHONE,
    String DOM_REG_COUNTRY_CODE,String DOM_REG_AREA_CODE,String DOM_REG_FAX,String DOM_REG_MOBILE,String DOM_ADM_FIRST_NAME,String DOM_ADM_LAST_NAME,String DOM_ADM_EMAIL,String DOM_ADM_ADDRESS,String DOM_ADM_CITY,String DOM_ADM_COUNTRY,String DOM_ADM_STATE,String DOM_ADM_ZIP,String DOM_ADM_PHONE,
    String DOM_ADM_COUNTRY_CODE ,String DOM_ADM_AREA_CODE,String DOM_ADM_FAX,String DOM_ADM_MOBILE,String DOM_BILL_FIRST_NAME,String DOM_BILL_LAST_NAME,String DOM_BILL_EMAIL,String DOM_BILL_ADDRESS,String DOM_BILL_CITY,String DOM_BILL_COUNTRY,String DOM_BILL_STATE,String DOM_BILL_ZIP,String DOM_BILL_PHONE,String DOM_BILL_COUNTRY_CODE,String DOM_BILL_AREA_CODE,String DOM_BILL_FAX ,
    String DOM_BILL_MOBILE,String DOM_TECH_FIRST_NAME,String DOM_TECH_LAST_NAME,String DOM_TECH_EMAIL,String DOM_TECH_ADDRESS,String DOM_TECH_CITY,String DOM_TECH_COUNTRY,String DOM_TECH_STATE,String DOM_TECH_ZIP,String DOM_TECH_PHONE,String DOM_TECH_COUNTRY_CODE,String DOM_TECH_AREA_CODE,String DOM_TECH_FAX,String DOM_TECH_MOBILE,int DURATION)
    return 1;
    public int returnTest2(String ACTIVITY_ID,String DOMAIN_NAME,String DOMHOSTNAME1,
    String DOMSERVER_IP_ADDRESS1,String DOMHOSTNAME2,String DOMSERVER_IP_ADDRESS2,
    String DOM_MX ,String DOM_MX_IP,String DOM_REGISTRAR,String DOM_RCONTACTID,
    String DOM_ACONTACTID,String DOM_BCONTACTID,String DOM_TCONTACTID,String DOM_AUTHCODE,
    String DOM_CURRENT_REGISTRAR,String DOM_AUTHORIZATION_CODE,String DOM_REG_FIRSTNAME,
    String DOM_REG_LASTNAME,String DOM_REG_EMAIL,String DOM_REG_COMPANY_NAME,String DOM_REG_ADDRESS,String DOM_REG_CITY,String DOM_REG_COUNTRY,String DOM_REG_STATE,String DOM_REG_ZIP,String DOM_REG_PHONE,
    String DOM_REG_COUNTRY_CODE,String DOM_REG_AREA_CODE,String DOM_REG_FAX,String DOM_REG_MOBILE,String DOM_ADM_FIRST_NAME,String DOM_ADM_LAST_NAME,String DOM_ADM_EMAIL,String DOM_ADM_ADDRESS,String DOM_ADM_CITY,String DOM_ADM_COUNTRY,String DOM_ADM_STATE,String DOM_ADM_ZIP,String DOM_ADM_PHONE,
    String DOM_ADM_COUNTRY_CODE ,String DOM_ADM_AREA_CODE,String DOM_ADM_FAX,String DOM_ADM_MOBILE,String DOM_BILL_FIRST_NAME,String DOM_BILL_LAST_NAME,String DOM_BILL_EMAIL,String DOM_BILL_ADDRESS,String DOM_BILL_CITY,String DOM_BILL_COUNTRY,String DOM_BILL_STATE,String DOM_BILL_ZIP,
    String DOM_BILL_PHONE,String DOM_BILL_COUNTRY_CODE,String DOM_BILL_AREA_CODE,String DOM_BILL_FAX ,String DOM_BILL_MOBILE,String DOM_TECH_FIRST_NAME,String DOM_TECH_LAST_NAME,String DOM_TECH_EMAIL,String DOM_TECH_ADDRESS,String DOM_TECH_CITY,String DOM_TECH_COUNTRY,String DOM_TECH_STATE,
    String DOM_TECH_ZIP,String DOM_TECH_PHONE,String DOM_TECH_COUNTRY_CODE,
    String DOM_TECH_AREA_CODE,String DOM_TECH_FAX,String DOM_TECH_MOBILE,int DURATION)
    return 2;
    public int returnData(int data)
    return data;
    The generated WSDL is as shown below
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions targetNamespace="http://DefaultNamespace" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://DefaultNamespace" xmlns:intf="http://DefaultNamespace" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <!--WSDL created by Apache Axis version: 1.4
    Built on Apr 22, 2006 (06:55:48 PDT)-->
    <wsdl:types>
    <schema elementFormDefault="qualified" targetNamespace="http://DefaultNamespace" xmlns="http://www.w3.org/2001/XMLSchema">
    <element name="registerDomain">
    <complexType>
    <sequence>
    <element name="ACTIVITY_ID" type="xsd:string"/>
    <element name="DOMAIN_NAME" type="xsd:string"/>
    <element name="DOMHOSTNAME1" type="xsd:string"/>
    <element name="DOMSERVER_IP_ADDRESS1" type="xsd:string"/>
    <element name="DOMHOSTNAME2" type="xsd:string"/>
    <element name="DOMSERVER_IP_ADDRESS2" type="xsd:string"/>
    <element name="DOM_MX" type="xsd:string"/>
    <element name="DOM_MX_IP" type="xsd:string"/>
    <element name="DOM_REGISTRAR" type="xsd:string"/>
    <element name="DOM_RCONTACTID" type="xsd:string"/>
    <element name="DOM_ACONTACTID" type="xsd:string"/>
    <element name="DOM_BCONTACTID" type="xsd:string"/>
    <element name="DOM_TCONTACTID" type="xsd:string"/>
    <element name="DOM_AUTHCODE" type="xsd:string"/>
    <element name="DOM_CURRENT_REGISTRAR" type="xsd:string"/>
    <element name="DOM_AUTHORIZATION_CODE" type="xsd:string"/>
    <element name="DOM_REG_FIRSTNAME" type="xsd:string"/>
    <element name="DOM_REG_LASTNAME" type="xsd:string"/>
    <element name="DOM_REG_EMAIL" type="xsd:string"/>
    <element name="DOM_REG_COMPANY_NAME" type="xsd:string"/>
    <element name="DOM_REG_ADDRESS" type="xsd:string"/>
    <element name="DOM_REG_CITY" type="xsd:string"/>
    <element name="DOM_REG_COUNTRY" type="xsd:string"/>
    <element name="DOM_REG_STATE" type="xsd:string"/>
    <element name="DOM_REG_ZIP" type="xsd:string"/>
    <element name="DOM_REG_PHONE" type="xsd:string"/>
    <element name="DOM_REG_COUNTRY_CODE" type="xsd:string"/>
    <element name="DOM_REG_AREA_CODE" type="xsd:string"/>
    <element name="DOM_REG_FAX" type="xsd:string"/>
    <element name="DOM_REG_MOBILE" type="xsd:string"/>
    <element name="DOM_ADM_FIRST_NAME" type="xsd:string"/>
    <element name="DOM_ADM_LAST_NAME" type="xsd:string"/>
    <element name="DOM_ADM_EMAIL" type="xsd:string"/>
    <element name="DOM_ADM_ADDRESS" type="xsd:string"/>
    <element name="DOM_ADM_CITY" type="xsd:string"/>
    <element name="DOM_ADM_COUNTRY" type="xsd:string"/>
    <element name="DOM_ADM_STATE" type="xsd:string"/>
    <element name="DOM_ADM_ZIP" type="xsd:string"/>
    <element name="DOM_ADM_PHONE" type="xsd:string"/>
    <element name="DOM_ADM_COUNTRY_CODE" type="xsd:string"/>
    <element name="DOM_ADM_AREA_CODE" type="xsd:string"/>
    <element name="DOM_ADM_FAX" type="xsd:string"/>
    <element name="DOM_ADM_MOBILE" type="xsd:string"/>
    <element name="DOM_BILL_FIRST_NAME" type="xsd:string"/>
    <element name="DOM_BILL_LAST_NAME" type="xsd:string"/>
    <element name="DOM_BILL_EMAIL" type="xsd:string"/>
    <element name="DOM_BILL_ADDRESS" type="xsd:string"/>
    <element name="DOM_BILL_CITY" type="xsd:string"/>
    <element name="DOM_BILL_COUNTRY" type="xsd:string"/>
    <element name="DOM_BILL_STATE" type="xsd:string"/>
    <element name="DOM_BILL_ZIP" type="xsd:string"/>
    <element name="DOM_BILL_PHONE" type="xsd:string"/>
    <element name="DOM_BILL_COUNTRY_CODE" type="xsd:string"/>
    <element name="DOM_BILL_AREA_CODE" type="xsd:string"/>
    <element name="DOM_BILL_FAX" type="xsd:string"/>
    <element name="DOM_BILL_MOBILE" type="xsd:string"/>
    <element name="DOM_TECH_FIRST_NAME" type="xsd:string"/>
    <element name="DOM_TECH_LAST_NAME" type="xsd:string"/>
    <element name="DOM_TECH_EMAIL" type="xsd:string"/>
    <element name="DOM_TECH_ADDRESS" type="xsd:string"/>
    <element name="DOM_TECH_CITY" type="xsd:string"/>
    <element name="DOM_TECH_COUNTRY" type="xsd:string"/>
    <element name="DOM_TECH_STATE" type="xsd:string"/>
    <element name="DOM_TECH_ZIP" type="xsd:string"/>
    <element name="DOM_TECH_PHONE" type="xsd:string"/>
    <element name="DOM_TECH_COUNTRY_CODE" type="xsd:string"/>
    <element name="DOM_TECH_AREA_CODE" type="xsd:string"/>
    <element name="DOM_TECH_FAX" type="xsd:string"/>
    <element name="DOM_TECH_MOBILE" type="xsd:string"/>
    <element name="DURATION" type="xsd:int"/>
    </sequence>
    </complexType>
    </element>
    <element name="registerDomainResponse">
    <complexType>
    <sequence>
    <element name="registerDomainReturn" type="xsd:int"/>
    </sequence>
    </complexType>
    </element>
    </schema>
    </wsdl:types>
    <wsdl:message name="registerDomainResponse">
    <wsdl:part element="impl:registerDomainResponse" name="parameters"/>
    </wsdl:message>
    <wsdl:message name="registerDomainRequest">
    <wsdl:part element="impl:registerDomain" name="parameters"/>
    </wsdl:message>
    <wsdl:portType name="WsEpp">
    <wsdl:operation name="registerDomain">
    <wsdl:input message="impl:registerDomainRequest" name="registerDomainRequest"/>
    <wsdl:output message="impl:registerDomainResponse" name="registerDomainResponse"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="WsEppSoapBinding" type="impl:WsEpp">
    <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="registerDomain">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input name="registerDomainRequest">
    <wsdlsoap:body use="literal"/>
    </wsdl:input>
    <wsdl:output name="registerDomainResponse">
    <wsdlsoap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="WsEppService">
    <wsdl:port binding="impl:WsEppSoapBinding" name="WsEpp">
    <wsdlsoap:address location="http://localhost:8080/WebServiceProject/services/WsEpp"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    And when I am sending the request the response comes like below
    - <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - <soapenv:Body> - <soapenv:Fault> <faultcode>soapenv:Server.userException</faultcode> <faultstring>java.lang.reflect.InvocationTargetException</faultstring> - <detail> <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">net-df0ab1ca865</ns1:hostname> </detail> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope>
    The faultcode and faultstring is the field which I am not getting.
    And the most funny thing is that,when I make a simple Test.java file which uses the object of PrintLib,then its running perfectally without web service,on the other hand in webservice The object of PrintLib is not instantiated.Means on the console the message printed "CONSTRUCTER 1"
    which I have used in PrintLib.
    Kindally provide me help,Thanks in advance

    The PrintClass is depends upon the "DURATION",there is a switch case in this class.Actully I have to use all the parameters in my web-service,and the supported file is PrintLib.I must have to use object of PrintLib for my web-service.
    Me doing debugging step by step by including lines in PrintLib.,but as shown when i m going to use the object of PrintLib the exception occured in the response of web-service
    *<soapenv:Fault> <faultcode>soapenv:Server.userException</faultcode> <faultstring>java.lang.reflect.InvocationTargetException</faultstring>*

  • WebService problem: only the first element of a string array is returned

    Hello,
    i did the J2EE QuickCarRental tutorial and extended it by some features: I created another entity bean and implemented four new methods in the QuickOrderProcessor. Then i deployed it as a WebService and accessed it using the Visual Composer.
    Everything works fine except the return value of one WebService method. I created a method with the return value String[]. But the Visual Composer reads it as String. Only the first element of the resulting string array is displayed. Although the test at the web-page http://<server>:<port>/QuickCarRentalService/Config1 displays the whole string array with all its elements. What did i wrong?
    Another problem is that after deploying the J2EE-Application with new WebService methods the changes are not visible inside the visual composer. Although the test at the web-page http://<server>:<port>/QuickCarRentalService/Config1 displays the changes. Do i have to restart the WebService system in the portal content? If yes how can i do that?

    Here are details about setting up and using web services and some examples:
    /people/prakash.darji/blog/2006/10/10/external-web-service-proxy-configuration-for-visual-composer

  • Webservice : problem with Base64 returned value

    Hello all,
    We are calling a webservice from a Flex2 application.
    When the returned value does not contain accentuated letters,
    we receive the value "as-is", everything is OK.
    When there is at least one accent, the result is
    automatically Base64 encoded by the server, and the
    xsi:type="n2:base64 is specified in the XML answer.
    The problem is that Flex2 does not Base64 decode the returned
    string, ans we cannot get the right value.
    We do not think that the problem is on the server, because we
    tryied to use 2 other webservice clients, and they worked well.
    We wonder if Flex2 can handle Base64 encoding on Webservice
    results or not.
    We thought abut using the Base64 decoder class, but it won't
    work because the result if not *always* Base64 encoded (depending
    if it contains some chars or not).
    Is there any solution to this issue ? If it can help, I paste
    the XML returned by the server at the end of this message.
    Thank you for your help.
    MiF
    <?xml version="1.0" encoding="UTF-8" ?>
    <env:Envelope xmlns:xsd="
    http://www.w3.org/2001/XMLSchema"
    xmlns:env="
    http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance">
    <env:Body>
    <n1:GetArticleResponse xmlns:n1="urn:ActionWebService"
    env:encodingStyle="
    http://schemas.xmlsoap.org/soap/encoding/">
    <return xmlns:n2="
    http://schemas.xmlsoap.org/soap/encoding/"
    xsi:type="n2:base64">PD94bWwgdmVyc2lvbj0iMS4xIiBlbmNvZGluZz0iSVNPLTg4NTktMSI/Pgo8
    YXJ0aWNsZXM+CiAgPGFydGljbGU+CiAgICA8aWQ+MTwvaWQ+CiAgICA8Y29k
    ZT5NaXRjaDwvY29kZT4KICA8L2FydGljbGU+CiAgPGFydGljbGU+CiAgICA8
    aWQ+MjwvaWQ+CiAgICA8Y29kZT5Qb2xvPC9jb2RlPgogIDwvYXJ0aWNsZT4K
    ICA8YXJ0aWNsZT4KICAgIDxpZD4zPC9pZD4KICAgIDxjb2RlPkvpa+k8L2Nv
    ZGU+CiAgPC9hcnRpY2xlPgo8L2FydGljbGVzPgo=</return>
    </n1:GetArticleResponse>
    </env:Body>
    </env:Envelope>

    You should use cast_to_varchar2 regardless what is source of base64_encode.
    Because base64-value consists of single byte ASCII-characters.

  • Automated Webservice problem

    hi all
    I am new to BPM.I was trying a example with two human activities and a automated activity.
    I am using webservice as my automated activity. I am passing some parameters to web service through a human activity and capturing webservice output in another human activity . The problem is my web service is not getting executed .The default  trace shows "There is no hashtable registered for java.lang.String class. Maybe there is a class loader problem."
    Please help in resolving this.
    Thanks
    Monika

    Hi Monika,
    Did you have a look at "Manage Processes" in NWA to verify that your process started correctly - well in case you were able to access the first human activity then this should be the case. Nevertheless this perspective should list your process. Once selected you can find a tab called "History" at the bottom of the page. Switch the view to "advanced" and see the result of the service call. If it was successful the history will log it. If there was some error either the history will log it or the problem will be part of the default trace.
    I think the "hashtable + String" message you mentioned is not directly related to this problem.
    Cheers,
    Martin

  • Weblogic webservice problem

    Hi , friends, I have a problem regarding web services in oracle weblogic workshop.
    In our application we need to create 2 web services. We have 10 to 12 packages under src folder , i.e.,
    src(under this folder)------------------>com.abc.des.desk (like this we have couple of packages). All those packages are having different java related file, porlets etc.
    I need to create another package called com.abc.des.webservices
    under this I have to create 2 webservice (JAX-WS) with annotations.All these webservices along with remaining above mentioned packages goes to one single EAR file.
    I am unable to select JAX-WS related facets.
    When I select weblogic webservices , it is giving a warning message that "No projects found that support web services.The Standard Annotated Web Service facet must be enabled".I didn't understand where I need to enable them.
    Please suggest on this problem.
    Thanks a lot
    Peter.

    Hi Peter
    1. Since you used the words like portlets etc, I am assuming you have a PortalWeb Project. So you have like portalEAR, portalWeb and may be portalDataSync project. NOW under portalWeb project src you have your own packages. This is where you need to create a new WebService also under a new package. FIRST of all, you need to add Web Services Project Facet to this portalWeb pojrect. Still it may NOT work. But I will give you an idea. Select your portalWeb project. Right clikc mouse, select Properties. From Properties window on left side, select Project Facets. On right side you will see list of Facets already selected. Click on Modify Project button on bottom right hand corner. This opens up Project Facets window. Check the Facet named Web Services. NOW immediately in the bottom you may see some Errors like "Standard Annotated Web Services 2.0 and Beehive Controls 1.0.1 cannot both be selected" etc. I am talking about WLP 10.3 version. This means by default portalWeb project will have Beehive stuff facets Enabled to allow use of Pageflow Portlets. So you cannot add Web Services Facet to this Same portalWeb project. Unless you want to manully remove Beehive Facets (means you cannot use Pageflow portlets), then may be Web Services Facets can be added.
    One work around or more elegant solution is create a another brand new project like myWebServices project and enable Web Services for this. Nothing but create a new WebServices project with all Web Services Facets. Add this to the same portalEAR project. Then add all your webservices to this new project. NOW you can always invoke these Web Services from portalWeb project src code like utility classes or Pageflows etc. Incase if you want to use some utility classes across both portalWeb and webServices project, then you need to add all these classes into another simple Java Project. Then import this into both portalWeb and webServices projects.
    I saw another opotion also. When you select Web Services Project Facet, it has 2 child facets. Standard Annotated Web Services whose default version is 2.0. If you choose version 1.0, look like there are no dependencies. Means poralWeb project can have Web Services Facet provided you use Standard Annotated Web Sevices Version 1.0 (instead of default 2.0). Now using this you may loose some new features from 2.0. I am not sure to what extent this will work. But give this a shot in your dev Env. And see if you can create a simple webservice and live with that.
    portalEAR can have both portalWeb project and any other projects like webServices or Java utility porjects etc. All these projects will be bundled into one single .EAR file only for deployment.
    Thanks
    Ravi Jegga

  • SOAP Webservice problem on Android

    Hello,
    I am trying to consume my own SOAP webservice and generated webservice stubs from my wsdl in flash builder.
    Testing operations is working fine. Everything is working in "simulated device". But when I run my app on my android device webservice calls are never returning.
    They are actually never received on the webservice server.
    Just afert 10 to 30 seconds there is a window displayed inside my app. This window is not from me, I only have two label fields in this project to display test webservice data.
    Made a image for you:
    "click to have good quality"
    I tried 2 services:
    one where the webservice server is running on my device (10.10.200.40 is devices ip address)
    one where the webservice is running in internet.
    The devices connection is fine. 10.10.200.40 and outside addresses are pingable and the webservice on the device can be called from flashbuilder's operation testing.
    Thanks,
    Thomas

    Hello All
    I also need to call some simple web mothods. How is this achieved?
    I have an as3 mobile project built in flash builder 4.6 which needs to send/ receive simple data with my asp.net web service.
    Is your problem related to a security setting in your xml descriptor file perhaps??

  • Webservice: Problem passing long string 8k

    Hi,
    I have a webservice who receives a string parameter (xml). I send it a string shorter than 8 kb  a no problem but when I send a long string longer than 8 kb, it has problems.
    Do someone know how can I fix this?
    Where can I modify this value?
    regards.

    Thanks for your recomendations, The problem is still there. I'm doing a POST.
    I already did the same sample in CF9 and I don't have the problem there. The only diference is the that the CF9 is a physical server with Win Server 2008 R2 and the CF 10 is a virtual with WIn Server 08 R2.

  • MDM WebServices Problem while connecting to MDM repository

    Hello,
    we have installed the Web Services for MDM.
    When I test the Services, say the MDMSearchRecords I always get a ERROR status and the Message:
    id (String)  WS_LogonProblem
    severity (String) ERROR
    text (String)   Problem while connecting to MDM repository: z_Material on server: debmu416.server..... at port: 4000. Maybe the Repository-Information has not been set correctly at the requested query.
    status (String)  FAIL
    The Repository Information I try to connect with is correct (Repository Name, Server Name, Port, data Language and schema Language).
    Can you pls tell me where the problem could be?
    Points will be generously rewarded!
    Best Regards,
    Mircea

    Hi Arun,
    Thanks a lot!
    you were right! The WebServices version was too old.
    Now I can connect to the Repository in Test mode.
    I get some other error Messages, like "Field Material_Number is not defined at Table Products." and "Repository Data is not available in the requested Language ." which isn' right.
    Do you have a clue where this could come from?
    BR,
    Mircea

  • SchedulerTask and external webservice problems

    Hi,
    I need to build an application that fetches some report from an external webservice (Axis) on the net and stores some data in a portal database.
    However, I picked the KM-residing SchedulerTask to solve this issue because you can run it just like cron-jobs and the like.
    In my SchedulerTasks code - it has been tested standalone and does a great job fetching data from webservice - the calls fails due to a "connection refused", see stacktrace way below.
    My portal is a development machine and is therefore talking to and with everyone, fully open, un-proxied and should not hinder me from accessing such a webservice, I think.
    I checked the webservice URL (wsdl-ended) is accessible from within my SchedulerTask by opening a simple java.net.URL on it which worked really nice.
    My questions are:
    - Did someone experience a similar behaviour and if so how did you solve this?
    - Is there any additional configuration needed to make portal/KM speak with external webservices?
    - Any other thoughts?
    Thanks for your help!
    regards,
    Christian
    The essential lines from the stacktrace:
    {0}#1#AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.net.ConnectException: Connection refused
    faultActor:
    faultNode:
    faultDetail:
            {http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: Connection refused
            at java.net.PlainSocketImpl.socketConnect(Native Method)
            at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
            at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
            at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
            at java.net.Socket.connect(Socket.java:461)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    For iSight help, consider http://support.apple.com/kb/HT2090
    In addition to testing with iMovie, you can also test video recording with QuickTime Pro if you have it.
    Because you have similar problems with Photo Booth when using another camera, you may be rushing Photo Booth. Consider the suggestions offered here:
      http://discussions.apple.com/thread.jspa?messageID=7018319&#7018319
    If apps other than Photo Booth record properly but you do not want to use one of those that work properly, it is possible that a corrupted Photo Booth Preferences file is causing your problem. Quit Photo Booth (and all other applications) and throw away the Photo Booth Preferences file (com.apple.photobooth.plist) from your Home / Library / Preferences folder. A new preferences folder will be generated when you restart Photo Booth to test whether it works now.
    If resetting preferences did not help but you still want to use Photo Booth, reinstalling the Photo Booth app might help.
    If no app works properly, see your Apple Authorized Service Provider for professional help.
    EZ Jim
    G5 DP 1.8GHz w/Mac OS X (10.5.7) PowerBook 1.67GHz (10.4.11)   iBookSE 366MHz (10.3.9)  External iSight

  • OBIEE Report using webservices : problem using the htmlviewservice.

    Hi,
    I have a requirement that i have to display OBIEE report on web browser.
    i followed the following article for achieving this. http://oraclebizint.wordpress.com/2007/07/31/customizing-obi-ee-soap-api/.
    I have a problem while creation of the html page.
    the given sample code consists the following.
    startIndex = htmlOutput.indexOf("IFRAME SRC=");
    endIndex = htmlOutput.indexOf("%3aEI Index",startIndex);
    startIndex = startIndex + 12;
    endIndex = endIndex + 10;
    System.out.println("start Index ="+ startIndex+"\n"+"end Index ="+endIndex);
    url ="<HTML><BODY><IFRAME SRC=\"" +htmlOutput.substring(startIndex,endIndex) +"\"></BODY></HTML>";
    But i didn't understand the given lines of the code. I tried a code like url = "<HTML><BODY>"+ headerHTML+htmlOutput + "</BODY></HTML>";
    I am able to get the reportId, sessionId, pageId. After creation of the html page, it always display a rotating clock.
    please help me how to get the report on html page with the url.
    Thanks in advance.
    Udaykiran.
    Edited by: UdayKiran on Sep 28, 2011 3:31 PM

    Oracle accepted this as a Bug
    Bug 14606826 - SOAP CALL FROM EXTERNAL JAVA APPLICATION TO OBIEE11G NOT RETURNING ANY DATA

  • Deploying webservice problem

    Hi all I'm new to J2EE and am having a promlem deploying a webservice, I am using netbeans 5.5 with J2EE 5 and java Aplication server 9.0.
    I have added the web service to a bean Container when i deploy I get the following error
    Deploying application in domain failed; Error while running ejbc -- Fatal Error from EJB Compiler -- /opt/SUNWappserver/domains/domain1/generated/xml/j2ee-modules/testEJB/META-INF/wsdl/NewWebServiceBeanService.wsdl (No such file or directory)
    what have I not done any suggestions would be appreciated
    thanks in advance
    Brian

    The cluster address has a typo in it. The interesting part is weblogic does not report any errors / warning if the IP address in cluster address are invalid (not incorrect). So, if you give an IP address as 111.111.1111 you will get nothing in logs and app will not work but status of servers and app will be shown as active as if everything is fine.

  • Importing Non-SAP WebService - Problem: Data Transfer

    Hi all,
    I need to integrate a non-sap Web Service into Dynpro.
    I generated a client-proxy and a logical port.
    The Web Service needs one object (the structure from the object was generated correctly)
    In the next step I was programming the following code.
    *        Reference variables for proxy and exception class
             DATA:
             lo_clientproxy TYPE REF TO zrhco_testrules_services,
             lo_sys_fault TYPE REF TO cx_ai_system_fault,
             lo_app_fault TYPE REF TO cx_ai_application_fault,
    *        Structures to set and get message content
             ls_request TYPE zrhexecute_rules,
             ls_person TYPE zrhperson,
             ls_response TYPE zrhexecute_rules_response.
      ls_person-geschlecht = 'weiblich'.
      ls_person-age = 18.
      ls_person-name = 'Petra'.
      ls_person-icon1 = 0.
      ls_person-icon2 = 0.
      ls_request-person = ls_person.
      TRY.
    *    create proxy client
          CREATE OBJECT lo_clientproxy.
       CATCH cx_ai_system_fault.
      ENDTRY.
      TRY.
          CALL METHOD lo_clientproxy->execute_rules
            EXPORTING
              input = ls_request.
        CATCH cx_ai_system_fault INTO lo_sys_fault.
          WRITE: / 'Code:', lo_sys_fault->code.
          WRITE: / 'Text:', lo_sys_fault->errortext.
        CATCH cx_ai_application_fault INTO lo_app_fault.
      ENDTRY.
    The input is correctly filled with the required data but every time i executed the program an error occurred.
    SoapFaultCode:5
    I think that the real problem could be parsing abap into xml.
    SERIALIZE_APPLICATION_DATA
    I tested the Web Service in Web Services Navigator without any errors.
    The object is written in Java and the class implement Serializable, but i think the failure is on the abap site.
    Does anyone has a solution for my issue?
    Thanks a lot in advance!
    Regards,
    Robert

    Hello Leo,
    There are a number of options to do this. You can use the standard SAP tool named LSMW - Legacy System Migration Workbench (transaction LSMW) as a starting point.
    Also please read this [Documentation|http://help.sap.com/saphelp_47x200/helpdata/en/0d/414538bc0fe927e10000009b38f8cf/frameset.htm] before undertaking the data migration activity via LSMW.
    Additionally, there is also a Direct Input program available named RMDATIND - please go through the program documentation before you use it. You can use this program to transfer material master data to SAP but
    make sure you assign this program through LSMW for mapping structures etc. The internet link above will give
    more details and step-by-step instructions to follow.
    Hope this helps,
    Cheers,
    Sougata.
    p.s. It is sad to see useful answers remain unrewarded such as this one!
    Edited by: Sougata Chatterjee on May 9, 2008 10:13 PM

  • Webservice problems under Business Connector 4.6

    Hi.
    I've done this scenario Webservice (request) --> BC --> R3 --> Webservice (response).
    With Business developer i've made my wsdl (very strange, because i get two files .. wsdl and xsd).
    When i use a client such as SOAPUI, input parameters of the BAPI in R3 doesn't arrive to BC.
    Does anybody know what is happening?
    Regards,
    Inigo.

    nm

  • Webservice problem with

    Hi guys, i have a problem..
    I created a web service from a bapi (ecc6),named get UserDetail. the input is User name and the output are fields like address telephone and so on..
    I tested the web service via the WS admin service for soap runtime. When i fill in my user name i get the expected result like address telephone.
    Now i have created a process with 3 steps the first step starts with a user task, the Task output (User Name) is mapped to the context1.
    The second step is the web service I described above. The input is the context1 from above (user name) and is mapped to (UsergetDetail) User name. The output that I want like address telephone and so on is mapped to a context2.
    Then the third is a user task, where the input of taks is Context2 mapped to the UIrequest.
    When is start the service i enter the user name and press the OK button, i expect the web service to preforms its task and will give the output and i wait for the the 3 task..
    But the third task isn't started at all..
    Do you know what could be the problem??
    And is there a way to test the web service in visual composer?
    Thanks..

    Hi guys, i have a problem..
    I created a web service from a bapi (ecc6),named get UserDetail. the input is User name and the output are fields like address telephone and so on..
    I tested the web service via the WS admin service for soap runtime. When i fill in my user name i get the expected result like address telephone.
    Now i have created a process with 3 steps the first step starts with a user task, the Task output (User Name) is mapped to the context1.
    The second step is the web service I described above. The input is the context1 from above (user name) and is mapped to (UsergetDetail) User name. The output that I want like address telephone and so on is mapped to a context2.
    Then the third is a user task, where the input of taks is Context2 mapped to the UIrequest.
    When is start the service i enter the user name and press the OK button, i expect the web service to preforms its task and will give the output and i wait for the the 3 task..
    But the third task isn't started at all..
    Do you know what could be the problem??
    And is there a way to test the web service in visual composer?
    Thanks..

Maybe you are looking for