Problem call WebService NSUrl

Hi!! I wonder why I try to run a Webservice call he did not run through NSUrl, but if I copy and paste the link in Safari it runs successfully, it is giving the error:
_urlString - 0x147d8010 - Invalid Summary
_baseURL - 0x8b1c7400 - Invalid Summary
My URL called is:
    NSString *urlString = @"www.baladafriendsmeeting.com/wsBaladaFriends.asmx/addUsuario?Chave=CHAVETESTE& Device=aaxx&Usuario=aaa&Email=bbb&Sexo=1&PostTwitter=0&AtivaGPS=1&AtivaSpam=1";
    NSURL *url = [[NSURL alloc]  initFileURLWithPath:urlString];
Thanks

You are creating a file URL (file://xxx) with the call to initFileURLWithPath.  Use the proper initialiser and you should get proper results.

Similar Messages

  • Problem calling WebService from VisualComposer model at runtime

    Hello Experts,
    I have a very simple model with form as input for calling Webservice on backend system and a table as output.
    During the runtime the WebService call is failing with:
    Error while getting the backend function : Could not find operation Z_EAI_GETUSERROLES_WS.ZEaiGetuserroles
    The service definition is succesfully published to CE's ServiceRepository.
    There is a correct entry for backend system under SOA->Destination Template Management in CE NWA.
    I can succesfully test this WebService in WSNavigator in both systems - CE and backend.
    I can succesfully test this WebService in NWDS at design time (by right-clicking on service)
    In Logs Viewer I can see the following entries:
    error 2011-10-13 17:16:01:838 Stopped further execution since the interpreter is unusable /Applications/wd4vc com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.XGLInterpreter sap.com/aanisecurityui~vc_impl
    info 2011-10-13 17:16:01:837 Closing the connection for the system SRR /Applications/wd4vc com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.postExecution:  sap.com/aanisecurityui~vc_impl
    warning 2011-10-13 17:16:01:272 No classification system found for ID 'uddi:uddi.sap.com:categorization:physical-system-id' /Applications/UDDI/Classification com.sap.esi.uddi.sr.cs.handler.impl.ejb.util sap.com/tcesiuddisrcs~ear
    Can you please advise me what else I need to check to solve this error?
    Best Regards,
    Artsiom Anichenka

    Hi Artsiom ,
    I don't know VC and how it is on CE 7.3, but when developing Java Webdynpro application using CE 7.11 on same principle (with destination template defined in NWA), we sometimes faced almost same situation due to cache problem...
    Basically, this happen if you deploy your application using a model, change your webservice (for example adding a new field), re-import the model in NWDS and re-deploy. In NWDS, everything seems to be ok, but at runtime, it fails due to cache problem which is not refreshed with the new meta data definition. The only solution in 7.11 was to restart the server. I think (but not sure) that starting 7.2, there is a tool to clean the (webservice) cache.
    I hope it could help...
    Regards
    Olivier

  • Problem calling WebService from Oracle Forms created by JDeveloper

    Hi All,
    I am trying to call a Webservice from Oracle Form using JAVA Class created by Oracle JDeveloper.
    The Java Function (in JDeveloper) is as follows:
    public Vector GetPIValue(String TagName, String ReadingTime) throws Exception
    URL endpointURL = new URL(endpoint);
    Envelope requestEnv = new Envelope();
    Body requestBody = new Body();
    Vector requestBodyEntries = new Vector();
    requestBodyEntries.addElement(TagName);
    requestBodyEntries.addElement(ReadingTime);
    requestBody.setBodyEntries(requestBodyEntries);
    requestEnv.setBody(requestBody);
    Message msg = new Message();
    msg.send(endpointURL, "http://tempuri.org/GetPIValue", requestEnv);
    Envelope responseEnv = msg.receiveEnvelope();
    Body responseBody = responseEnv.getBody();
    return responseBody.getBodyEntries();
    When this Class is Imported into Oracle Forms the Function is converted into the following PL/SQL code:
    FUNCTION GetPIValue(
    obj ORA_JAVA.JOBJECT,
    a0 VARCHAR2,
    a1 VARCHAR2) RETURN ORA_JAVA.JOBJECT IS
    BEGIN
    Message('param passed: '||a0||' - '||a1);
    cls := JNI.GET_CLASS('oracle/forms/demos/webservice/ConnectToPIStub');
    mid := JNI.GET_METHOD(FALSE, cls, 'GetPIValue', '(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Vector;');
    args := JNI.CREATE_ARG_LIST(2);
    JNI.ADD_STRING_ARG(args, a0);
    JNI.ADD_STRING_ARG(args, a1);
    Message('I am Here');
    RETURN JNI.CALL_OBJECT_METHOD(obj, mid, args);
    END;
    When I am calling this Function from Within Forms and Passing into it the Parameters, I am displaying some Debugging Messages. When the Code reaches "JNI.CALL_OBJECT_METHOD" there is NO RESPONSE from the Webservice and nothing is moving forward after this Point...
    A similar Webservice that can be Tested is:
    http://www.webservicex.com/CurrencyConvertor.asmx
    with WSDL file:
    http://www.webservicex.com/CurrencyConvertor.asmx?wsdl
    Kindly note that this Webservice is running properly from the Web Browser but the call from Oracle Forms is not Succeeding!!!! :-((
    Any help is much appreciated.
    Regards,
    Baz

    Hi,
    Yes, you need to compile your source files with JDK 1.3 (since JInit 1.3.x.x uses JDK 1.3).
    Other solution would be to use JRE 1.5 (instead of JInitiator).
    Check out [this thread|http://forums.oracle.com/forums/thread.jspa?threadID=550563] on how to use JRE1.5
    -Arun

  • Problem calling WebService from XI scenario

    Hi forum,
    i trued to make a scenario to call a webservice from my XI scenario, i made it using the following blog :
    /people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function
    I have configured a receiver SOAP channel and has mentioned the Target URL as
    http://www.webservicex.net/CurrencyConvertor.asmx
    now the scenario gives the error in the communication channel monitoring in RWB as
    SOAP: call failed: java.net.UnknownHostException: www.webservicex.net
    but from my local machine i can access this URL, ....can u pls site the defect

    Hi sudeep,
         Specify the proxy address details like address and port. and also check the soap receiver channel properly configured or not.
    Regards,
    Deviprasad Pothireddi.

  • Problem Calling WebService in Form

    Hi,
    I created a form to call a WebService and works fine in forms builder. When i passed the form to the application server i have a error "FRM-40735: ORA-105100". The Webservice is running on localhost, and the application server is installed in the same machine.
    The Java code used to create the connection is:
    m_httpConnection = new OracleSOAPHTTPConnection();
    Or Should I use the next code?
    Properties prop = new Properties();
    prop.setProperty(OracleSOAPHTTPConnection.PROXY_HOST, MYHOST");
    prop.setProperty(OracleSOAPHTTPConnection.PROXY_PORT,"MYPORT");
    m_httpConnection = new OracleSOAPHTTPConnection(prop);
    What values should have Myhost and MyPort ?
    Please help!
    best regards,
    TT

    I don't have a proxy. I have DevSuite10gr2 installed and have a webservice running on http://LX_PPORT:8988/TheService-WebService-context-root/GecaClipServiceSoap
    and the proxy running in the same machine. My machine name is LX_PPORT.
    When running from Forms Builder works fine.
    When i run from the internet explorer http://localhost:8889/forms/frmservlet?config=gettoken have that error.
    what configuration should i use?
    Thanks for your help.
    best regards, TT

  • Problem calling webservice through Webdynpro

    Hi,
    I have created a webservice model for BAPI_ALM_CONF_CREATE in webdynpro. The execution of the webservice is working fine and the confirmation is done, but the response from the webservice is coming blank. I need the confirmation number and count as return for my furthur processing. I have checked the model binding with the webservice and everything seems fine. Please let me know if I have missed something to get the response working.
    Thanks
    Raghav

    Hi,
       in a webservice model the nodes are created in following manner
        webservicemodelname
        --Request
          ---Response
        --Response
    u have to bind the reuqestnode and its subnode it responsenode also to the component controller node...
    then in executor method
    crete the object of modelcalss and bind it to the context of compoent controller
    and then execute the model ..
    response should be ther in component controller context .
    then map it to where u want....
    also check where  u are invalidating the response..
    u dont have to invalidate the respponse because it delete all the data from the context.
    Regards,
    yashpal
    Message was edited by: Yashpal Gupta

  • Call webservice from PJC over https protocol

    Hello!
    I have problem calling webservice from PJC.
    The webservice is on https server so I must declare the keystore and truststore...
    I have generated java classes from wsdl file with SOPAUI and axis 1.0...
    Then I have made a code which integrate axis library, jsee ...
    On the client side all works fine (with jdk 1.3 compiler)
    When I deploy it on oracle forms server and call it from oracle form I get the error:
    java.net.MalformedURLException: unknown protocol: https
    in this way I register the certificate..
    private void registrirajCertifikat(String direktorij, String password,
            String keyStore, String trustStore) {
           System.out.println("keystore: " + direktorij + keyStore);
            System.out.println("trust: " + direktorij + trustStore);
            System.out.println("========================================");
            System.setProperty("javax.net.ssl.keyStore", direktorij + keyStore);
            System.setProperty("javax.net.ssl.keyStorePassword", password);
            System.setProperty("javax.net.ssl.keyStoreType", "pkcs12");
            System.setProperty("javax.net.ssl.trustStore", direktorij + trustStore);
            System.setProperty("javax.net.ssl.trustStorePassword",   password);
            System.setProperty("javax.net.ssl.trustStoreType", "jks");
            System.out.println("========================================");
            System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
            Security.addProvider( new com.sun.net.ssl.internal.ssl.Provider() );     
        }I have my kestore and truststore located on http server..
    Every time the bean is initializzed I download the keystore and truststore to my java.tmp.dir
    The same code in Jdeveloper works fine.. also in cmd prompt.. but in oracle forms I can't get it to run..
    anybody can help me?
    this is my console output when running a form:
    Oracle JInitiator: Version 1.3.1.22
    Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\peterv.IN2SLO
    Proxy Configuration: no proxy
    JAR cache enabled
         Location: C:\Documents and Settings\peterv.IN2SLO\Oracle Jar Cache
         Maximum size: 50 MB
         Compression level: 0
    c:   clear console window
    f:   finalize objects on finalization queue
    g:   garbage collect
    h:   display this help message
    l:   dump classloader list
    m:   print memory usage
    q:   hide console
    s:   dump system properties
    t:   dump thread list
    x:   clear classloader cache
    0-5: set trace level to <n>
    Loading http://dekani:7777/forms/java/frmall_jinit.jar from JAR cache
    Loading http://dekani:7777/forms/java/images.jar from JAR cache
    Cached copy of http://dekani:7777/forms/java/in2kartica.jar
    ** DOKUMENTNI SISTEM   **
    ** PJC bean                     **
    zacetek
    http://10.1.2.235/in2/asarh.pfx
    Copying resource (type: application/octet-stream, modified on: Dec 18, 2009 12:39:35 PM)... to: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\asarh.pfx
    3794 byte(s) copied
    http://10.1.2.235/in2/arhaskeystore.jks
    Copying resource (type: application/octet-stream, modified on: Dec 18, 2009 12:39:35 PM)... to: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\arhaskeystore.jks
    3800 byte(s) copied
    Registriramo nastavitve za SSL
    keystore: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\asarh.pfx
    trust: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\arhaskeystore.jks
    ========================================
    po registraciji nastavitev za SSL
    ========================================
    https://hosting.arhiviraj.si/webservice2/InDocArchiveWS.asmx
    --> napaka: *java.net.MalformedURLException: unknown protocol: https*
    java.net.MalformedURLException: unknown protocol: https
         at java.net.URL.<init>(Unknown Source)
         at java.net.URL.<init>(Unknown Source)
         at java.net.URL.<init>(Unknown Source)
         at in2.mikrocop.Test.dokumenti(Test.java:94)
         at in2.mikrocop.Test.testiranje(Test.java:66)
         at in2.mikrocop.Test.<init>(Test.java:49)
         at java.lang.Class.newInstance0(Native Method)
         at java.lang.Class.newInstance(Unknown Source)
         at oracle.forms.ui.VBean.instantiateBean(Unknown Source)
         at oracle.forms.ui.VBean.setProperty(Unknown Source)
         at oracle.forms.handler.UICommon.instantiate(Unknown Source)
         at oracle.forms.handler.UICommon.onCreate(Unknown Source)
         at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
         at oracle.forms.engine.Runform.startRunform(Unknown Source)
         at oracle.forms.engine.Main.createRunform(Unknown Source)
         at oracle.forms.engine.Main.start(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    I have tryed tu run my example with Jinitiator "java" like
    c:\java -jar c:\in2kartica.jar
    and all works fine..
    I don't know why the same example won't run inside oracle form as javabean?!?
    this is my cmd console
    C:\jdk\bin>java -jar c:\in2kartica.jar
    ** DOKUMENTNI SISTEM   **
    ** PJC bean            **
    keystore: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\asarh.pfx
    trust: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\arhaskeystore.jks
    ========================================
    po registraciji nastavitev za SSL
    ========================================
    https://hosting.arhiviraj.si/webservice2/InDocArchiveWS.asmx
    unknown attr1.3.6.1.4.1.311.17.1
    Dolzina: 91  <------------ this is the result from webservice located on address above

  • Problems calling a Webservice

    Hi All!
    I'm having some problems calling a Webservice. I've created a deployable proxy and a client bean and from this bean I've generated a Webservice. When I test this Webservice the actual webservice call is succesfull but I get the following response from the Webservice:
    HTTP/1.1 200 OK
    Connection: close
    Date: Fri, 13 May 2005 10:26:37 GMT
    Server: Microsoft-IIS/6.0
    P3P: CP="NOI DSP COR ADM DEV PSA PSD HIS OTP OUR IND STA"
    X-Powered-By: ASP.NET
    X-Powered-By: PHP/4.3.9
    Status: 200 OK
    Server: PEAR-SOAP 0.8.0RC2-devel
    Content-Type: text/xml; charset=UTF-8
    Content-Length: 1887
    X-Zend-WinEnabler: 1.2.0
    <br />
    <b>Notice</b>:  Undefined property:  actor in <b>C:Program FilesZendWinEnablerphppearSOAPServer.php</b> on line <b>318</b><br /> <br />
    <b>Notice</b>:  Undefined property:  mustunderstand in <b>C:Program FilesZendWinEnablerphppearSOAPServer.php</b> on line <b>322</b><br />
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/ ....etc"
    As you can see there is some HTML code in the response. This HTML code causes problems for the SAP parser as it expects a SOAP:Envelope and not some HTML junk.
    I've looked up what the properties <i>mustunderstand</i> and <i>actor</i> do in a SOAP header and they seem to be optional properties. On the Webservice side the SOAP parser unfortunately seem to think these properties are mandatory.
    There's probably two ways to solve this problem. The first way is to ask the guys who host this Webservice to change it are their side. The other option is to add these properties to the SOAP header on the SAP side....which brings me to my question: Is there any way to add these two properties to the SOAP header before the deployable proxy calls the Webservice?

    Hi Arnouid,
    as far as I understand your post, the HTML code is the body of the response.
    If it is so, it is not a correct SOAP-message. A SOAP header  is inside of the envelope and not outside of it.
    So, it is not very a big surprise, that the parser don't like this.
    Aside from the form of a SOAP-message, it is not even a XML-message, which must begin with <?xml...
    tom

  • Problem in calling webservice using https from livecycle designer

    I  want to call a webservice written in .net(c#) using https  from livecycle  designer.I can call webservice using http ,but when i try with https it is  failing.If there any special configuration have to do in server for this ?I have  already put crossdomain in server.
    Waiting  for your reply
    thank's

    How did you call from LC? Please help me out either one is fine to me http or https
    Srujan

  • Error when call webservice on servlet

    Hi All,
    I'm having a problem when calling webservice inside the servlet on the WebLogic environment.
    My code:
    * Webservice:
    package ws;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.util.Date;
    import javax.jws.WebMethod;
    import javax.jws.WebParam;
    import javax.jws.WebService;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.sql.DataSource;
    @WebService
    public class getData {
    public getData() {
    super();
    @WebMethod
    public String getHello() {
    return "HELLO HELLO";
    private Connection getConn() throws NamingException, SQLException {
    InitialContext ic = new InitialContext();
    DataSource ds = (DataSource)ic.lookup("jdbc/hnxwebsite");
    //System.out.println("POOL !!!!");
    Connection con = ds.getConnection();
    con.setAutoCommit(false);
    return con;
    @WebMethod
    public String getIndexData(@WebParam(name="param") String param) {
    StringBuffer sb = new StringBuffer();
    String sql =
    "Select * From idx_index_info iii where iii.index_code= ?";
    Connection con = null;
    PreparedStatement pstmt = null;
    ResultSet rs = null;
    try {
    con = getConn();
    pstmt = con.prepareStatement(sql);
    pstmt.setString(1, param);
    rs = pstmt.executeQuery();
    int columnCount = rs.getMetaData().getColumnCount();
    Object val;
    while (rs.next()) {
    for (int i = 1; i < columnCount; i++) {
    //System.out.println(i);
    val = rs.getObject(i);
    if (val != null)
    sb.append(val.toString() + "\n");
    } catch (SQLException e) {
    e.printStackTrace();
    } catch (NamingException e) {
    e.printStackTrace();
    } finally {
    try {
    if (rs != null)
    rs.close();
    if (pstmt != null)
    pstmt.close();
    if (con != null)
    con.close();
    } catch (Exception e) {
    e.printStackTrace();
    String str = sb.toString();
    int len = str.length();
    //System.out.println("LENGTH >>>>"+len);
    return str;
    public static void main(String[] arg) {
    Date date = new Date();
    System.out.println(date.toGMTString());
    getData gd = new getData();
    System.out.println(date.toGMTString());
    //System.out.println(gd.getIndexData("ACB"));
    * WebClient:
    package hnx;
    import java.util.Date;
    import java.util.Map;
    import javax.xml.namespace.QName;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPBodyElement;
    import javax.xml.soap.SOAPElement;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.ws.BindingProvider;
    import javax.xml.ws.Dispatch;
    import javax.xml.ws.Service;
    import javax.xml.ws.WebServiceException;
    import javax.xml.ws.soap.SOAPBinding;
    public class wsClient {
    public wsClient() {
    super();
    public String procWeb() {
    String strmsg = null;
    try {
    QName serviceName = new QName("http://192.168.60.18:7001/","getDataService");
    // QName for Port As defined in wsdl.
    QName portName = new QName("http://192.168.60.18:7001/","getDataPort");
    // //Endpoint Address
    String endpointAddress = "http://192.168.60.18:7001/WsIndex/getDataPort?wsdl";
    // Create a dynamic Service instance
    Service service = Service.create(serviceName);
    service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING,
    endpointAddress);
    // Create a dispatch instance
    Dispatch<SOAPMessage> dispatch = service.createDispatch(portName,
    SOAPMessage.class, Service.Mode.MESSAGE);
    // Use Dispatch as BindingProvider
    BindingProvider bp = (BindingProvider) dispatch;
    // Optionally Configure RequestContext to send SOAPAction HTTP Header
    Map<String, Object> rc = bp.getRequestContext();
    rc.put(BindingProvider.SOAPACTION_USE_PROPERTY, Boolean.TRUE);
    rc.put(BindingProvider.SOAPACTION_URI_PROPERTY, "http://ws/");
    // Obtain a preconfigured SAAJ MessageFactory
    MessageFactory factory = ((SOAPBinding) bp.getBinding())
    .getMessageFactory();
    // Create SOAPMessage Request
    SOAPMessage request = factory.createMessage();
    // Request Body
    SOAPBody body = request.getSOAPBody();
    // Compose the soap:Body payload
    QName payloadName = new QName("http://ws/", "getIndexData","ns1");
    SOAPBodyElement payload = body.addBodyElement(payloadName);
    SOAPElement message = payload.addChildElement( "param");
    message.addTextNode("HNX302");
    request.saveChanges();
    // Invoke the endpoint synchronously
    System.out.println(message);
    SOAPMessage reply = null;
    try { // Invoke Endpoint Operation and read response
    reply = dispatch.invoke(request);
    } catch (WebServiceException wse) {
    wse.printStackTrace();
    // process the reply
    SOAPBody bodyRes = reply.getSOAPBody();
    SOAPBodyElement nextSoapBodyElement = (SOAPBodyElement) bodyRes
    .getChildElements().next();
    SOAPElement soapElement = (SOAPElement) nextSoapBodyElement
    .getChildElements().next();
    strmsg = soapElement.getValue();
    System.out.println("AAA >>"+strmsg);
    } catch (Exception wse) {
    wse.printStackTrace();
    return strmsg;
    public static void main(String[] arg) {
    wsClient ws = new wsClient();
    Date date = new Date();
    System.out.println(date.toGMTString());
    System.out.println(ws.procWeb());
    System.out.println(date.toGMTString());
    * Servlet:
    package hnx;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import ws.GetData;
    import ws.GetDataPortClient;
    import ws.GetDataService;
    public class getIndex extends HttpServlet {
    private static final String CONTENT_TYPE = "text/html; charset=UTF-8";
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    public void doPost(HttpServletRequest request,
    HttpServletResponse response) throws ServletException,
    IOException {
    doGet(request, response);
    public void doGet(HttpServletRequest request,
    HttpServletResponse response) throws ServletException,
    IOException {
    response.reset();
    response.flushBuffer();
    response.setContentType(CONTENT_TYPE);
    PrintWriter out = response.getWriter();
    // GetDataService service = new GetDataService();
    // GetData getData = service.getGetDataPort();
    // String str = getData.getIndexData("HNX302");
    // int length = str.length();
    // response.setContentLength(length);
    wsClient ws = new wsClient();
    String str = ws.procWeb();
    try {
    out.println(str);
    } catch (Exception e) {
    e.printStackTrace();
    out.close();
    ERROR: >>>>>[Another instance of the application is running on the server.  JDeveloper redeploy the application.]
    [Application SClient stopped but not undeployed from Server Instance IntegratedWebLogicServer]
    [Running application SClient on Server Instance IntegratedWebLogicServer...]
    [03:41:48 PM] ---- Deployment started. ----
    [03:41:48 PM] Target platform is (Weblogic 10.3).
    [03:41:48 PM] Retrieving existing application information
    [03:41:48 PM] Running dependency analysis...
    [03:41:48 PM] Deploying 2 profiles...
    [03:41:48 PM] Wrote Web Application Module to C:\Users\W7\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\o.j2ee\drs\SClient\sgetDataWebApp.war
    [03:41:48 PM] Wrote Enterprise Application Module to C:\Users\W7\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\o.j2ee\drs\SClient
    [03:41:49 PM] Redeploying Application...
    [03:41:49 PM] Application Redeployed Successfully.
    [03:41:49 PM] The following URL context root(s) were defined and can be used as a starting point to test your application:
    [03:41:49 PM] http://192.168.9.100:7101/SClient
    [03:41:49 PM] Elapsed time for deployment: 1 second
    [03:41:49 PM] ---- Deployment finished. ----
    Run startup time: 1380 ms.
    [Application SClient deployed to Server Instance IntegratedWebLogicServer]
    Target URL -- http://127.0.0.1:7101/SClient/getindex
    [param: null]
    javax.xml.ws.WebServiceException: com.ctc.wstx.exc.WstxIOException: Exceeding stated content length of 228
         at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:117)
         at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:258)
         at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:165)
         at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:101)
         at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:604)
         at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:563)
         at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:548)
         at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:445)
         at com.sun.xml.ws.client.Stub.process(Stub.java:248)
         at com.sun.xml.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:189)
         at com.sun.xml.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:215)
         at hnx.wsClient.procWeb(wsClient.java:75)
         at hnx.getIndex.doGet(getIndex.java:40)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: com.ctc.wstx.exc.WstxIOException: Exceeding stated content length of 228
         at com.ctc.wstx.sw.BaseStreamWriter.finishDocument(BaseStreamWriter.java:1687)
         at com.ctc.wstx.sw.BaseStreamWriter.writeEndDocument(BaseStreamWriter.java:585)
         at com.sun.xml.ws.message.saaj.SAAJMessage.writeTo(SAAJMessage.java:396)
         at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:114)
         ... 29 more
    Caused by: java.net.ProtocolException: Exceeding stated content length of 228
         at weblogic.net.http.ContentLengthOutputStream.write(ContentLengthOutputStream.java:39)
         at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:96)
         at com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:214)
         at com.ctc.wstx.sw.BufferingXmlWriter.close(BufferingXmlWriter.java:194)
         at com.ctc.wstx.sw.BaseStreamWriter.finishDocument(BaseStreamWriter.java:1685)
         ... 32 more
    java.lang.NullPointerException
         at hnx.wsClient.procWeb(wsClient.java:82)
         at hnx.getIndex.doGet(getIndex.java:40)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Can anyone help?
    Thanks in advance.
    LTThoi

    I'm no webservices/servlet expert , but can you check the obvious out here -
    javax.xml.ws.WebServiceException: com.ctc.wstx.exc.WstxIOException: Exceeding stated content length of 228
    at ......
    at hnx.wsClient.procWeb(wsClient.java:75)+ // check if you are passign something thats more than 228 chars
    at hnx.getIndex.doGet(getIndex.java:40)

  • Problem call Web Service SAML on PI 7.0

    Hi experts,
    I have a problem very estrange on one scenario and maybe somebody could help me:
    Our PI version is 7.0.
    The BPM has got the following steps:
    - Call WebService for get the SAML. Message Synchronous with request and response Authentification.
    - We add the Authentification Response on Envelope message.
    - Call web Service with Envelope, inside of this one there is the Authentification (step 1).
    The las Web Service always returns that the Authentification is error.
    We execute the same steps manually using SAOPGui program ( a free program for test WebService ) and the same steps works.. and the structures are the same, but on PI 7.0 never works.
    We researh on forums and we have seen that the SAML Authentification is soported only for PI 7.1.
    Could anybody confirm it? It is possible use SAML Authentification on PI 7.0? Are there other process to execute a SAML WebService using PI 7.0?
    Any response or any idea will be very appreciated.
    Thank you very much...
    Regards,
    Gemma

    It is possible use SAML Authentification on PI 7.0?
    at least the help section on 7.0 mentions the use of SAML...check this link
    http://help.sap.com/saphelp_nw70/helpdata/EN/47/2388909a1d2de9e10000000a1553f7/frameset.htm
    Regards,
    Abhishek.

  • VBA Call WebServices: How to handle a returned empty complex array?

    Hi,
        These days I got a task to call a web service by VBA in Excel, but faced the following two problems about empty complex array.
    <b>1. When the returned value of a web service contains empty array, it crashed with "SoapMapper: array dimensions do not match definition"</b>
        Another guy faced the same question with me, detail at http://www.topxml.com/SOAPToolkit/rn-246726_SoapMapper-array-dimensions-do-not-match-definition.aspx
    <b>2. When the input parameter contains empty array, it crashed with "Operation Not Supported"</b>
    Dim arrayStudent() As Student
    Call webservice.DoThings( arrayStudent )

    Hello,
    we have faced the same Problem in our PHP / Typo3 solution. We used this switch:
    $object_array = array();
    if (is_object($salesorders->SALES_ORDERS_HEAD->item)) {
         $object_array[] = $salesorders->SALES_ORDERS_HEAD->item;
    } else {
         $object_array = $salesorders->SALES_ORDERS_HEAD->item;
    Best regards
    Gregor

  • How to call webservices in visuval composure CE 7.1 server

    Hi ,
    How to call webservices in visuval composure CE 7.1 server (WSDL) ,  please send step  by step process
    Thanks & Regards,
    Suresh

    I have exactly the same problem.
    Here is what I found out:
    In the browser based VC you have to use the Destination Template Managemet from NWA. The destinations are found during design time and can be called during runtime.
    The NWDS version seems to work differently. You cannot see the destinations you created in NWA. Instead there is a preferences setting (Destination configuration). Here you can define the destination using WSDLs.
    This works during design time.
    But during runtime the call throws an error like 'Destination not found'. To me, it seems like a bug.
    Does anybody have an idea how to solve this?
    Thanks,
    Michael

  • Problems with WEBSERVICES

    Hello,
    i have some Problems with WebServices.
    When I call my function how makes the request (get_frob), it goes back to the main program and make a print! After that my request starts!
    I want that the request finished first and then make a print!
    I need threats for this???and how does it work?
    My englisch is not so good I´m sorry for that!
    Please help me
    Thanks
    Chris
    def Button_Autorisieren:SwingButton=SwingButton{
        text:"Autorisieren"
        width:100
        translateY:150
        action:function()
            var Authentication:HTTP_Authentication=new HTTP_Authentication();
            Authentication.get_frob();
            java.lang.System.out.println(Authentication.abfrage);
    public class HTTP_Authentication {
        var api_key:String="***********";
        var secret_key:String="***********";
        var stat:String;
        var sig:String;
        var frob:String;
        var method:String;
        var md5_String:String;
        var perms:String;
        var api_sig:String;
        public var abfrage:Boolean;
        public var link:String;
        def md5:MD5=new MD5();
        var parser = PullParser{
            documentType: PullParser.XML;
            onEvent: function(event: Event) {
                    if (event.type == PullParser.START_ELEMENT ) {
                        if(event.qname.name == "rsp" and event.level==0)
                           stat=event.getAttributeValue(QName{name:"stat"});
                        if (stat=="ok")
                         if(event.type==PullParser.END_ELEMENT)
                              if(event.qname.name == "frob")
                                  frob=event.text;
                                  java.lang.System.out.println("Frob: {frob}");
                                   abfrage=true;
        public function get_frob ()
            method="flickr.auth.getFrob";
            md5_String="{secret_key}api_key{api_key}method{method}";
            java.lang.System.out.println(md5_String);
            sig=md5.makeMD5(md5_String);
            java.lang.System.out.println(sig);
            var request = HttpRequest {
                    location: "http://api.flickr.com/services/rest/?method={method}&api_key={api_key}&api_sig={sig}"
                    method: HttpRequest.GET
                    onInput: function(input: java.io.InputStream)
                                    parser.input=input;
                                    parser.parse();
                                    input.close();
                        }.enqueue();
        }

    Hello,
    thank you for your answer. It was my mistake, I discribe the problem very bad.
    When i call the function get_frob(). Netbeans goes in the function and run through the end but nothing happened
    onMouseClicked: function( e: MouseEvent ):Void {
                         test=Authentikation_Frob.get_frob();and in my if clausel there will be a wrong output! After the output my programm go back to the function get_frob() and then make the request and go back to the if clausel. Now everything ist correct. But why does my programm need 2 runs ????thats not correct!!
    Thank you!!
    if (test==true)
                             var Authentikation_Link:HTTP_Authentication_Link=new HTTP_Authentication_Link();
                            link=Authentikation_Link.get_link();
                            var uri = new java.net.URI("{link}");
                             var desktopClazz = java.lang.Class.forName("java.awt.Desktop");
                             var getDesktopMethod = desktopClazz.getMethod("getDesktop");
                             var desktop = getDesktopMethod.invoke(null);
                             var browseMethod = desktopClazz.getMethod("browse", [uri.getClass()] as java.lang.Class[]);
                              browseMethod.invoke(desktop, uri);
                         else
                             fehler_ausgabe.visible=true;
                             fehler_ausgabe.content="Fehler {Authentikation_Frob.frob_fehler} {Authentikation_Frob.frob_hilfe}";
                         }Edited by: Esco24 on Aug 10, 2009 1:02 AM

  • Calling webservice from Flex?

    Hi,
    I get the error when I call webservice from Flex.Can you tell
    me why this happen?
    Thanks
    Mark
    [RPC Fault faultString="Security error accessing url"
    faultCode="Channel.Security.Error" faultDetail="Destination:
    DefaultHTTP"]
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::faultHandler()
    at mx.rpc::Responder/fault()
    at mx.rpc::AsyncRequest/fault()
    at DirectHTTPMessageResponder/securityErrorHandler()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/redirectEvent()

    I think this means that the source of the web service does
    not have a crossdomain.xml file on it allowing access from your
    site. Try adding one to the root of the server and see if that
    fixes the problem.
    hth,
    matt horn
    flex docs

Maybe you are looking for

  • Network connection to HP P3015dn printer

    I have a problem with several layers to it. After MANY years of service my HP laserjet 2100 series printer started to have feed issues so I thought it was time to update.  Bought the P3015dn printer as a companion to the color laserjet.  Printer had

  • Just opening a PDF in Workspace

    Hi all, I have a process in which I submit (copy) an entire PDF file with digital signature to a watched folder and this kicks of the process. Now as the first step I would like to present the PDF for the user in a task assignment. The PDF opens fine

  • Mail (Lion) & Exchange 2007, periodically stops receiving messages, does no hang

    As the title says, we are having this issue.  I saw another post last year about Exchange 2010 hanging, and an old certificate caused the issue.  Our network admin is looking into that.  We are not experiencing any hangs.  Mail "works" fine.  We have

  • How to combine 2 assembly files????

    Is anybody how to combine 2 assembly files together??? the 2 assembly files are the generated codes of 2 different c files. Each c file has its own main function. ThANKS

  • CS3 style mapping problems

    Using: CS3 (all updates), Intel Mac 10.6.8, word 2008 (doc saved in 2003 format): Hyperlink is defined to inherit the properties of the underlying style and works fine in both Word and InDesign. However, when importing from word to ID, both the body