How to deal with complex SOAP responses when calling web services ???

Hi all,
I have an issue when calling a web service that returns a complex
SOAP response message. With simple responses (e. g. array of strings) it
worked.
I created the PDF as an Interactive form with Livecycle Designer 8.2.
The Javascript looks like this:
var cURL = "http://blabla";
var cTestString = "too";
SOAP.wireDump=true;
var response = SOAP.request(
     cURL: cURL,
     oRequest: {
          "http://blabla.com/:complete" : {
          arg0: cTestString
          cAction: "http://bla.com:50000/"
var resp = response["http://blabla.com:serviceResponse"];
console.println("lenght:"+resp.length);
var myns = "http://blabla.com/namespace";
for (var nItem in resp.return)
  console.println("" + nItem + " " + resp.return[nItem] );
     for (var ConceptView in resp.return[nItem])
       console.println("  "+resp.return[nItem].length);
       console.println("  "+ConceptView+" "+resp.return[nItem][ConceptView] );
       if (ConceptView == myns + ":Response")
          for (var item2 in resp.return[nItem][ConceptView]){
              console.println("    "+item2+" "+resp.return[nItem][ConceptView][item2] );
I call the service and when I realized that I do not find out the type of the object returned, I used the nested for-in-loops to iterate through it. But it seems that there is just one item in the Javascript object returned, although the SOAP message clearly shows that there are more than one item.
Can you help me?
One key problem when analyzing this issue is that I do not know at all
the Javascript type of response. We suspected it might be an array, but it is not
because the method .length returns "undefined". It would already be
helpful to know at least the type of this object and to know callable
methods and so on ...
Best regards
Christoph
P.S. As mentioned I used Livecycle Designer 8.2 and displayed and
debugged the document using Acrobat 9.

Christoph,
Firstly LiveCycle Designer 8.2 is still not supported to develop forms as per my knowledge. The latest version compatible for SAP Interactive Forms is ALD 8.0.
There is a difference between Acrobat based forms and LiveCycle forms and based on your coding it looks to me  that you are trying to create a LiveCycle based form with coding of Acrobat which is not supported in LiveCycle Desginer, which is why you may be getting the error.
I hope that does not confuse you, so may check this [link|http://www.acrobatusers.com/articles/2006/08/designer_or_forms/index.php] for some clear information on what point I was trying to make.
Chintan

Similar Messages

  • ORA-28868 error when calling Web service over HTTPS from PL/SQL utl_http

    I am getting error message ORA-28868 error when calling Web service over HTTPS from PL/SQL utl_http PL/SQL package,
    when browsed through some of the messages they point to setting Oracle Wallet Manager.
    I am trying to connect
    Any idea on how to resolve this issue ?
    your input is appreciated.
    Thanks
    Ravi

    Duplicate post ... please ignore.

  • How to reference complex data type when consuming web services in WAS 620?

    In WAS 620, I tried to consume a web service in ABAP. I was successful when the web service returned one or more simple data type. But when the web service is changed to return a complex data type (eg. a structure with 3 elements), the call to the web service did not return anything.
    Do any of you know how to reference the individual element in the structure of an output parameter in a web service? I use the add_parameter method of the CSoapDocument class to identify the output parameters.
    Here is part of the WSDL file:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:s0="urn:sap-com:document:sap:rfc:functions" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="urn:sap-com:document:sap:rfc:functions">
    - <types>
    - <xsd:schema targetNamespace="urn:sap-com:document:sap:rfc:functions">
    - <xsd:element name="Z_SRM_SOAP_TEST_COMPLEX">
    - <xsd:complexType>
    - <xsd:all>
    - <xsd:element name="INTEXT">
    - <xsd:simpleType>
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="50" />
      </xsd:restriction>
      </xsd:simpleType>
      </xsd:element>
      </xsd:all>
      </xsd:complexType>
      </xsd:element>
    - <xsd:element name="Z_SRM_SOAP_TEST_COMPLEX.Response">
    - <xsd:complexType>
    - <xsd:all>
      <xsd:element name="OUTTEXT" type="s0:ZSRM_TEST_STRUCT" />
      </xsd:all>
      </xsd:complexType>
      </xsd:element>
    - <xsd:complexType name="ZSRM_TEST_STRUCT">
    - <xsd:sequence>
    - <xsd:element name="ELEMENT1" minOccurs="0">
    - <xsd:simpleType>
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="50" />
      </xsd:restriction>
      </xsd:simpleType>
      </xsd:element>
    - <xsd:element name="ELEMENT2" minOccurs="0">
    - <xsd:simpleType>
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="50" />
      </xsd:restriction>
      </xsd:simpleType>
      </xsd:element>
    - <xsd:element name="ELEMENT3" minOccurs="0">
    - <xsd:simpleType>
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="50" />
      </xsd:restriction>
      </xsd:simpleType>
      </xsd:element>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:schema>
      </types>

    Hi,
      [email protected] is my id and one more thing u by looking at the wsdl file u can know what al the parameters we have to give to the webservice so try it out also.
    Regards,
    Sirisha.

  • Hit TransitionException when call web service in bpm

    hello, my mesage of exception like follows:
    <br>
    com.sap.glx.core.kernel.api.TransitionException: An exception occurred while executing the script "_FileIn:AUTOMATED_ACTIVITY_FI_Notice_PSP(
          com.sap.glx.adapter.BPMNAdapter:Token_0_CSS_FileIn_58b390c7e1a007da73193237933adb39 token,
          com.sap.glx.adapter.BPMNAdapter:Instance_0_CSS_FileIn_58b390c7e1a007da73193237933adb39 parent,
          com.sap.glx.adapter.internal.ContainerAdapter:Context_0_IRO_58b390c7e1a007da73193237933adb39 context_0){
      exit=new com.sap.glx.adapter.BPMNAdapter:Exit();
      exit:addParameter(token);
      exit:addParameter(parent);
      exit:addParameter(context_0);
      exit:onActivation("4B1F796E2DC84120E4AC11DEB8BF00016C0D596F", parent, token);
      delete exit;
      controller=new com.sap.glx.adapter.internal.ExceptionAdapter:ExceptionController();
      controller:setContext(token);
      delete controller;
      callscope=new com.sap.glx.adapter.internal.TypeRegistry:Scope_20_FileIn_58b390c7e1a007da73193237933adb39(parent);
      call=new com.sap.glx.adapter.UnifiedConnectivityAdapter:Call_3_FI_Notice_PSP_58b390c7e1a007da73193237933adb39(callscope);
      request=callscope:instantiate("http://tsmc.com/csspoc/notice/ejb/sb/", "#entrustSendingNotice");
      mapper=new com.sap.glx.adapter.internal.Transformer:DataMapper();
      yves_in=new com.sap.glx.adapter.internal.Transformer:Data();
      yves_out=new com.sap.glx.adapter.internal.Transformer:Data();
      data=context_0:getData();
      yves_in:setData("tsmc.com/filein/pc/iresolution/Pool/FileIn", "$tsmc.com/filein/pc/iresolution/Pool/FileIn:IRO", data, "F2E8AB22162217BCFE0495CA03E629FD");
      yves_out:setData("http://tsmc.com/csspoc/notice/ejb/sb/", "$http://tsmc.com/csspoc/notice/ejb/sb/:entrustSendingNotice", request, "0B03C177B47A4396F51FAC817E2C3870");
      mapper:map("4B1F796E2DCB4E62E4AC11DEB49600016C0D596F_58b390c7e1a007da73193237933adb39", yves_in, yves_out);
      request=yves_out:getData("http://tsmc.com/csspoc/notice/ejb/sb/", "$http://tsmc.com/csspoc/notice/ejb/sb/:entrustSendingNotice", "0B03C177B47A4396F51FAC817E2C3870");
      delete yves_in;
      delete yves_out;
      delete mapper;
      call:setInputData("http://tsmc.com/csspoc/notice/ejb/sb/", "$http://tsmc.com/csspoc/notice/ejb/sb/:entrustSendingNotice", request);
      response=callscope:instantiate("http://tsmc.com/csspoc/notice/ejb/sb/", "#entrustSendingNoticeResponse");
      call:setOutputData("http://tsmc.com/csspoc/notice/ejb/sb/", "$http://tsmc.com/csspoc/notice/ejb/sb/:entrustSendingNoticeResponse", response);
      call:invoke();
      response=call:getOutputData("http://tsmc.com/csspoc/notice/ejb/sb/", "$http://tsmc.com/csspoc/notice/ejb/sb/:entrustSendingNoticeResponse");
      mapper=new com.sap.glx.adapter.internal.Transformer:DataMapper();
      yves_in=new com.sap.glx.adapter.internal.Transformer:Data();
      yves_out=new com.sap.glx.adapter.internal.Transformer:Data();
      yves_in:setData("http://tsmc.com/csspoc/notice/ejb/sb/", "$http://tsmc.com/csspoc/notice/ejb/sb/:entrustSendingNoticeResponse", response, "0B03C177B47A4396F51FAC817E2C3870");
      mapper:map("4B1F796E2DD00950E4AC11DEC9F000016C0D596F_58b390c7e1a007da73193237933adb39", yves_in, yves_out);
      delete yves_in;
      delete yves_out;
      delete mapper;
      delete call;
      delete callscope;
      token:state=14;
    com.sap.glx.core.kernel.execution.transition.ScriptTransition.execute(ScriptTransition.java:69)
    com.sap.glx.core.kernel.execution.transition.Transition.commence(Transition.java:241)
    com.sap.glx.core.kernel.execution.LeaderWorkerPool$Follower.run(LeaderWorkerPool.java:118)
    com.sap.glx.core.resource.impl.common.WorkWrapper.run(WorkWrapper.java:58)
    com.sap.glx.core.resource.impl.j2ee.ServiceUserManager$ServiceUserImpersonator$1.run(ServiceUserManager.java:116)
    java.security.AccessController.doPrivileged(Native Method)
    javax.security.auth.Subject.doAs(Subject.java:337)
    com.sap.glx.core.resource.impl.j2ee.ServiceUserManager$ServiceUserImpersonator.run(ServiceUserManager.java:114)
    com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    java.security.AccessController.doPrivileged(Native Method)
    com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:169)
    com.sap.glx.core.kernel.api.TransitionException: An exception occurred while executing the script command "call:invoke()"
    com.sap.glx.core.kernel.trigger.config.Script.execute(Script.java:675)
    ... (11 more)
    com.sap.glx.core.kernel.api.TransitionException: com.sap.glx.adapter.api.AdapterException: Unexpected exception occured.
    com.sap.glx.core.dock.impl.DockObjectImpl.invokeMethod(DockObjectImpl.java:465)
    com.sap.glx.core.kernel.trigger.config.Script$MethodInvocation.execute(Script.java:247)
    ... (12 more)
    com.sap.glx.adapter.api.AdapterException: Unexpected exception occured.
    com.sap.glx.adapter.app.ucon.UnifiedWebServiceCallObject.invokeWebServiceOperation(UnifiedWebServiceCallObject.java:333)
    com.sap.glx.adapter.app.ucon.UnifiedWebServiceCallClass.invoke(UnifiedWebServiceCallClass.java:197)
    ... (14 more)
    com.sap.glx.adapter.api.AdapterException: Exception occured during wsdas initialization.
    com.sap.glx.adapter.app.ucon.UnifiedConnectivityAdapter.createNewWSDAS(UnifiedConnectivityAdapter.java:654)
    com.sap.glx.adapter.app.ucon.UnifiedWebServiceCallClass.getWSDAS(UnifiedWebServiceCallClass.java:53)
    ... (16 more)
    com.sap.engine.services.webservices.espbase.discovery.TargetNotMappedException: Logical Target CSD.SystemHome.f7sap03 not mapped to a physical system.
    com.sap.esi.esp.service.server.query.discovery.DestinationsHelperImplSoa.getLogicalDestination(DestinationsHelperImplSoa.java:831)
    com.sap.esi.esp.service.server.query.discovery.DestinationsHelperImplSoa.getWSDLUrl(DestinationsHelperImplSoa.java:985)
    com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.getWSDLUrl(GenericServiceFactory.java:582)
    com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:338)
    com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:321)
    com.sap.engine.services.webservices.espbase.wsdas.impl.WSDASImpl.<init>(WSDASImpl.java:33)
    com.sap.engine.services.webservices.espbase.wsdas.impl.WSDASFactoryImpl.createWSDAS(WSDASFactoryImpl.java:39)
    ... (18 more)
    <br>
    i have no idea why and how it happen, it been work well.

    Vic,
    the vital piece of information in the error stack is this line:
    com.sap.engine.services.webservices.espbase.discovery.TargetNotMappedException: Logical Target CSD.SystemHome.f7sap03 not mapped to a physical system.
    It seems that there is something wrong with the configuration of the target system for the called Web Service in your AS Java.
    Best regards,
    Oliver
    Edited by: Oliver Goetz on Dec 11, 2009 5:24 PM
    Edited by: Oliver Goetz on Dec 11, 2009 5:24 PM

  • Add cookie to HTTP request header when calling web service

    I'm trying to call web service using JDeveloper 11g. I successfully generated web service proxy from WSDL document. I can successfully call this particular web service's method "login" which returns "session_id", which then needs to be inserted as a cookie in the HTTP request header in later calls to other methods. This is how the HTTP request header should look like:
    POST /webservice HTTP/1.1
    Host: registrar.carnet.hr
    Connection: Keep-Alive
    User-Agent: .hr domene
    Content-Type: text/xml; charset=utf-8
    SOAPAction: "https://registrar.carnet.hr/webservice#get_domain_name"
    Content-Length: 532
    Cookie: session_id=f3po0ba01a47gd64792151ee43a25765;
    How can this be accomplished? There is not much code that I wrote, everything is generated by JDeveloper's wizard...
    public static void main(String[] args) {
    try {
    RegistrarServicePortPortClient client =
    new RegistrarServicePortPortClient();
    client.setPortCredentialProviderList();
    // add your code here
    String login;
    login = client.login("username", "password");
    System.out.println(login);
    String myCookie = "session_id="+login;
    System.out.println(myCookie);
    *// what can be done to add myCookie to the HTTP request header?*
    } catch (Exception ex) {
    ex.printStackTrace();
    Thanks in advance,
    Bruno

    Hi Vishal,
    it's not a requirement but I wasn't able to create JAX-WS Style proxy from this WSDL: https://registrar.carnet.hr/wsdl
    The exception I'm getting is:
    oracle.jdeveloper.webservices.model.WebServiceException: Error creating model from wsdl "https://registrar.carnet.hr/wsdl": Could not bind "{http://schemas.xmlsoap.org/soap/encoding/}Array" in message part "return" to a Java type. If doc/lit style is used then message part should reference to global schema element.
         at oracle.jdeveloper.webservices.model.java.JavaWebService.createPortTypes(JavaWebService.java:1635)
         at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2846)
         at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2611)
         at oracle.jdeveloper.webservices.model.java.JavaWebService.<init>(JavaWebService.java:509)
         at oracle.jdeveloper.webservices.model.java.JavaWebService.<init>(JavaWebService.java:461)
         at oracle.jdeveloper.webservices.model.proxy.WebServiceProxy$ProxyJavaWebService.<init>(WebServiceProxy.java:2268)
         at oracle.jdeveloper.webservices.model.proxy.WebServiceProxy.updateServiceModel(WebServiceProxy.java:1701)
         at oracle.jdeveloper.webservices.model.proxy.WebServiceProxy.setDescription(WebServiceProxy.java:525)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.proxy.ProxyJaxWsSpecifyWSDLPanel.setDescription(ProxyJaxWsSpecifyWSDLPanel.java:238)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel.buildModel(SpecifyWsdlPanel.java:1109)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel$5.run(SpecifyWsdlPanel.java:661)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: oracle.jdeveloper.webservices.tools.WsdlValidationException: Error creating model from wsdl "https://registrar.carnet.hr/wsdl": Could not bind "{http://schemas.xmlsoap.org/soap/encoding/}Array" in message part "return" to a Java type. If doc/lit style is used then message part should reference to global schema element.
         at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.newWsdlValidationException(WsaAdaptor.java:825)
         at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.getSeiInfo(WsaAdaptor.java:515)
         at oracle.jdeveloper.webservices.tools.WebServiceTools.getSeiInfo(WebServiceTools.java:523)
         at oracle.jdeveloper.webservices.model.java.JavaWebService.getSeiInfo(JavaWebService.java:1741)
         at oracle.jdeveloper.webservices.model.java.JavaWebService.createPortTypes(JavaWebService.java:1496)
         ... 12 more
    Caused by: oracle.j2ee.ws.common.tools.api.ValidationException: Error creating model from wsdl "https://registrar.carnet.hr/wsdl": Could not bind "{http://schemas.xmlsoap.org/soap/encoding/}Array" in message part "return" to a Java type. If doc/lit style is used then message part should reference to global schema element.
         at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsWsdlToJavaTool.getJAXWSModel(JaxwsWsdlToJavaTool.java:664)
         at oracle.j2ee.ws.tools.wsa.WsdlToJavaTool.createJAXWSModel(WsdlToJavaTool.java:475)
         at oracle.j2ee.ws.tools.wsa.Util.getJaxWsSeiInfo(Util.java:1357)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.jdevimpl.webservices.tools.wsa.Assembler$2$1.invoke(Assembler.java:218)
         at $Proxy39.getJaxWsSeiInfo(Unknown Source)
         at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.getSeiInfo(WsaAdaptor.java:505)
         ... 15 more
    Caused by: oracle.j2ee.ws.tools.jaxws.wsdl.ModelBuilderException: Could not bind "{http://schemas.xmlsoap.org/soap/encoding/}Array" in message part "return" to a Java type. If doc/lit style is used then message part should reference to global schema element.
         at oracle.j2ee.ws.tools.jaxws.wsdl.OperationMappingBuilder.getPartJavaType(OperationMappingBuilder.java:702)
         at oracle.j2ee.ws.tools.jaxws.wsdl.OperationMappingBuilder.createParameterMapping(OperationMappingBuilder.java:675)
         at oracle.j2ee.ws.tools.jaxws.wsdl.OperationMappingBuilder.createParameterMapping(OperationMappingBuilder.java:663)
         at oracle.j2ee.ws.tools.jaxws.wsdl.OperationMappingBuilder.buildBarePortTypeParameters(OperationMappingBuilder.java:490)
         at oracle.j2ee.ws.tools.jaxws.wsdl.OperationMappingBuilder.buildBarePortTypeOperation(OperationMappingBuilder.java:301)
         at oracle.j2ee.ws.tools.jaxws.wsdl.OperationMappingBuilder.buildPortTypeOperation(OperationMappingBuilder.java:216)
         at oracle.j2ee.ws.tools.jaxws.wsdl.OperationMappingBuilder.build(OperationMappingBuilder.java:93)
         at oracle.j2ee.ws.tools.jaxws.wsdl.WSDLToJavaModelBuilder.buildPortTypeOperations(WSDLToJavaModelBuilder.java:635)
         at oracle.j2ee.ws.tools.jaxws.wsdl.WSDLToJavaModelBuilder.buildSEI(WSDLToJavaModelBuilder.java:435)
         at oracle.j2ee.ws.tools.jaxws.wsdl.WSDLToJavaModelBuilder.buildSEI(WSDLToJavaModelBuilder.java:402)
         at oracle.j2ee.ws.tools.jaxws.wsdl.WSDLToJavaModelBuilder.buildPorts(WSDLToJavaModelBuilder.java:383)
         at oracle.j2ee.ws.tools.jaxws.wsdl.WSDLToJavaModelBuilder.buildService(WSDLToJavaModelBuilder.java:322)
         at oracle.j2ee.ws.tools.jaxws.wsdl.WSDLToJavaModelBuilder.buildServices(WSDLToJavaModelBuilder.java:299)
         at oracle.j2ee.ws.tools.jaxws.wsdl.WSDLToJavaModelBuilder.buildAll(WSDLToJavaModelBuilder.java:271)
         at oracle.j2ee.ws.tools.jaxws.wsdl.WSDLToJavaModelBuilder.build(WSDLToJavaModelBuilder.java:188)
         at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsWsdlToJavaTool.getJAXWSModel(JaxwsWsdlToJavaTool.java:656)
         ... 24 more
    Caused by: oracle.j2ee.ws.common.databinding.tools.spi.SchemaFindException
         at oracle.j2ee.ws.common.tools.databinding.jaxb20.Jaxb20JavaDatabindingContext.getJavaTypeForSchemaType(Jaxb20JavaDatabindingContext.java:52)
         at oracle.j2ee.ws.tools.jaxws.wsdl.OperationMappingBuilder.getPartJavaType(OperationMappingBuilder.java:696)
         ... 39 more
    Thanks,
    Bruno

  • TimeoutException - when calling web services method that opens a PDF

    I am updating a legacy program which uses Adobe Acrobat 7.0 Professional.  The idea is that the client will call web service methods, which handle opening a PDF, reading from or writing to the PDF, saving if necessary, and closing.  It then returns the data (if reading) to the client.
    The only issue with this that I'm having is that the client will pause for about 60 seconds, and throw a TimeoutException.
    I know that the method on the web services end is working, because I wrote a quick driver which calls the very same method, but it executes normally, and works perfectly.
    My question is basically, is there anything that would cause the client to hang/freeze when calling the web services method to do this task? Everything is running on my workstation, and I've debugged to see that the filename being passed is the same in both tests.
    Thanks!

    Thank you, I somehow missed seeing that subforum. I reposted it in that forum instead. This thread can be deleted/closed. Thanks!

  • ICM_HTTP_SSL_ERROR when calling web service

    Summary: ICM_HTTP_SSL_ERROR was met when I called web service in ABAP with logical port & RFC Connection of type G.
    Details:
    1. the <b>test of RFC Connection of type G in SM59 works OK</b>, with SSL inactive and basic authentication.
    2. while <b>in ABAP code, the calling to web service throws ICM_HTTP_SSL_ERROR</b>, using the logical port with the RFC Connection as HTTp Destination.
    3. also, with using URL directly in logical port settings, the calling to web service in ABAP throws ICM_HTTP_SSL_ERROR.
    I searched threads and blog for ICM_HTTP_SSL_ERROR, it seems others met ICM_HTTP_SSL_ERROR in SM59; while my case is the test in SM59 works well.
    Anybody can help?
    Thanks and kind regards.
    Said

    Dear Sayid,
    The document which you had mentioned here is really helpful.
    I'am working on Digital Signature for Form16 in SAP.I stucked up with the same issue.
    I went through the document of
    Enabling SSL and Client Certificates on the SAP J2EE Engine by Angel Dichev
    in that document i went through one note
    Note: Per default, the SAP J2EE Engine uses the u201Cssl-credentialsu201D entry for SSL, which contains a
    public-key certificate that has been signed by a test CA. Although this certificate can be used for
    testing purposes, a certificate that has been signed by a well-known, productive CA should be used
    when in production mode.
    right now i'am doing it for testing purpose, in the above note it is mentioned that we can use default credentials but when i see the expiry date of this default credentials in my server 1) SSL-Credentials 2)SSL-Credentials-cert it is given that these certificates are Valid Not After 2005 year.
    So i got confused now whether to use the default credentials or not.
    Please guide me with a solution.
    With Regards,
    Pradeep.B

  • How to deal with the mouse events when the thread is running

    Hi everybody,
    I have a problem with my program.
    Now I want to present a picture for some time in the Canvas,then automatically clear the screen, but when the user press the mousebutton or keybutton, I want to stop the thread and clear the screen.
    How can I receive the mouse event when the thread is running?
    Thanks,

    I use my code in a GUI applet.
    I try to use the code tag, it's the first time.
                   Image im=sd.getStimulus(obj);
                   if(pos==null){
                        g.drawImage(im, (w-im.getWidth(null))/2,(h-im.getHeight(null))/2,null);
                   }else{
                        g.drawImage(im, pos.x,pos.y,pos.w,pos.h,null);
                   try{
                        sleep(showtime);
    //                    Thread.sleep(showtime);
                   }catch(InterruptedException e){}
                   if(pos==null){
                        g.clearRect((w-im.getWidth(null))/2,(h-im.getHeight(null))/2,im.getWidth(null),im.getHeight(null));
                   }else{
                        g.clearRect(pos.x,pos.y, pos.w, pos.h);
                   }

  • How to transfer username when calling web service from PI?

    Hi
    I have a scenario where a front end application is calling a web service exposed by PI 7.11 and PI is forwarding the call to the backend web service. That is, a SOAP sender adapter and a soap receiver adapter.
    Now, I would like to transfer the username, which the PI exposed web service is called with, to the backend web service.
    I previously did this by using a UDF where I picked up the username like this and mapped the username to a field in the request message when calling the backend web service:
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SOAP", "SRemoteUser");
    String WSuser = conf.get(key);
    return WSuser;
    However, I would like to avoid this method and in stead e.g. use either a query string like http://xxxxx:6571/ISBWS/soap/ISBCore?username=mikael or maybe transfer the username in the http header in some way.
    So my question is: what are my options and how do I set it up?
    BR MIkael

    Apparenty sending user name details in query string  is not best practice in webservice. Thats why WSDL does not cover user credentials inside. Webservice deals with message level security , transport level security, encryption , certificate authentication , username token etc
    If you want to use http query string in the soap receiver target url try as below and see how that helps... somthing as below..
    example:  http://host:port/jsppage?userid=test  or use  xslt mapping or java mapping create soap header as you want and specify username over there.

  • Unable to receive SOAP response from a web service

    We used the sun java platform 9 for our web service, sun java wireless toolkit 2.2.
    The SOAP message contains the hex string representation of an audio recording which is 32,088 bytes large. The phone memory usage while retrieving the soap message is 1105248 bytes. This is a 2 second audio recording. Any audio soap message longer than 2 seconds, the application does not complete the retrieval although the memory usage is much lower than the usage in the 2 second audio recording.
    What else could be the cause of the problem since we ruled out the memory usage already?

    Answered on my own:
    Just have to use
    x_result = http_client->response->get_data( ).
    instead of
    x_result = http_client->response->to_xstring( ).
    Just don't knwo why the filesize is wrong also - but I can work with this image!

  • Occasional SOAP errors when making web service calls from C#

    We have a C# application making web service calls to RFCs (non-NCO, SAP 4.7, WAS 6.40) and occasionally getting the following error:
    The 'SOAP-ENV:Envelope' start tag on line '1' does not match the end tag of 'SOAP-ENV:Envel'. Line 1, position 34560.
    This error happens randomly and can occur, not occur, and occur again for the exact same call (same data, same web service call).  I anticipate that we might have a missing configuration on one of our application servers, but don't know where to tell BASIS to look.  Any ideas or other help would be appreciated.

    That's going to be difficult.  The random nature of the error makes it impossible to reproduce (so far) in our Development and Test environments.  Since the error is coming from the SAP side, I believe I would need a sniffer on each production application server in order to try to catch this and that would result in some very large log files.  Is there any log file or other SAP transaction that might already be capturing these failures?

  • Error When Calling Web Service

    I have Oracle9i JDeveloper Release 2 (Version 9.0.2.829) installed along with embedded OC4J server. I followed tutorial of "Creating and Using Web Service" and failed when I tried to run DateTimeClient that calls the web service. The error message (see below) is very similar to the ones that some people have encountered in creating SOAP connection I have seen quite a few questions/answers from the Forums. I need to mention that I did test the OC4J server and SOAP server before I ran the DateTimeClient using
    (1)     http://127.0.0.1:8888/
    (2)     http://127.0.0.1:8888/soap/servlet/soaprouter
    and they all get expected information back.
    The error message is as follows:
    [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type &quot;text/html&quot;, must be: &quot;text/xml&quot;. Response was:
              &lt;DIV class=Section1&gt;
              &lt;P class=MsoNormal
              style=&quot;mso-list: none; mso-list-ins: &apos;&apos; 19991102T2025&quot;&gt;&amp;nbsp;
                                 if this problem persists, and provide the team your
                                  account information.&lt;/P&gt;
                 &lt;/TD&gt;
                 &lt;/T
         java.lang.String org.apache.soap.rpc.Call.getEnvelopeString(org.apache.soap.transport.SOAPTransport)
         org.apache.soap.rpc.Response org.apache.soap.rpc.Call.invoke(java.net.URL, java.lang.String)
         java.lang.String datetimeclientpackage.DateTimeClientStub.getDate()
         void datetimeclientpackage.DateTimeClient.main(java.lang.String[])
    Exception in thread main
    Process exited with exit code 1.
    Your solution/feedback regarding this problem is very much appreciated.
    Hao Xu

    After I read the notes written by Michael Lehmann (Title: How can I setup a soap server for use in JDeveloper 9i), I realized I need to turn off the proxy from JDeveloper. After that everything works.
    Thank you, Michael!
    - Hao

  • Class Not found : oracle.jdbc.driver.OracleDriver when calling web service

    Hi,
    I have installed the Oracle Data Integrator Public Web Services on Apache Tomcat 5.5 application server with Apache Axis2
    When I try to call the web service OdiInvoke using the operation "listScenario" using only the JdbcDriver as input parameter, the response I get back from the web service call is:
    java.lang.ClassNotFoundException: Class Not found : oracle.jdbc.driver.OracleDriver
    Using the operator "getWebServiceVersion" I get a successfull response back som the connection seems fine.
    Obviously the error has to do with the driver not beeing available but where should I put the driver? Or how do I make it available? When working from Topology Manager, all connections are fine.
    Best regards
    M

    Solved it on my own by putting ojdbc14.jar in the following directory: <Apache-Tomcat install dir>/webapps/axis2/WEB-INF/lib/
    Thought I'd share in case some one else has same issue
    /M

  • SSL handshake error when calling Web Service

    Hi Grant,
    I am using your example here:
    http://groundside.com/blog/GrantRonald.php?title=calling_a_web_service_from_oracle_forms__2&more=1&c=1&tb=1&pb=1
    to call a web service from forms 10g on a machine with no proxies set up.
    I get to the point where I click the button that calls this code:
    DECLARE
         jo ora_java.jobject;
         xo ora_java.jobject;
         rv varchar2(100);
         --rv number;
         ex ora_java.jobject;
    BEGIN
         jo := SendServiceSoapClient.new;
         rv := SendServiceSoapClient.sendMessage(jo,'07000000000', 'Test text message from Forms', xo, xo);
    --     rv := SendServiceSoapClient.sendMessage(jo,:block6.number_to_text, :block6.text_msg, xo, xo);
    EXCEPTION
         WHEN ORA_JAVA.JAVA_ERROR then
                        message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
         WHEN ORA_JAVA.EXCEPTION_THROWN then
                        ex := ORA_JAVA.LAST_EXCEPTION;
         --     message(Exception_.toString(ex));
         --     message(Exception_.toString(ex));
         :block6.item11 := Exception_.toString(ex);
    END;
    I then get the message:
    java.rmi.RemoteException: ; nested exception is:
         HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: javax.net.ssl.SSLException: SSL handshake failed: X509CertChainIncompleteErr
    My Jinitiator box says:
    Loading http://xpjdev11g.uk.conde-nast.biz:8889/forms/java/frmall_jinit.jar from JAR cache
    Loading http://xpjdev11g.uk.conde-nast.biz:8889/forms/java/wsarchive3.jar from JAR cache
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.0
    Please note additional steps:
    I have tried to sign my JAR file (called wsarchive3.jar) - not sure if I have it done it correctly??
    I have added the JAR file in the system CLASSPATH
    I have added the JAR file to formsweb.cfg
    If you could help with the SSL error, I'd greatly appreciate it. Thanks.

    Let me check - have you got the "HOW TO" I created working when you use the following WSDL
    http://www.esendex.com/secure/messenger/soap/SendService.asmx?wsdl
    Does this work ok from Forms?
    The reason I ask is there is an HTTP web service (which is what the how to documents) but there is also and HTTPS versions - if you are getting errors about SSL it might be you are using the HTTPS version
    I just want to make sure I understand what you have and have not working so far.
    Grant

  • "Binding is null" when calling web service

    Hello,
    I'm trying to call a web service from an automatic activity using:
    str as String
    hw as RecupelWebServices.HelloWorld.DummyWebService = MyWebServices.HelloWorld.DummyWebService()
    helloWorld hw
         returning str = helloWorldResult
    (similar to the documentation example)
    But it fails, warning that:
    a component failed trying to execute activity ...
    The method 'CIL_myMethod' from class 'MyProject.MyProcessName.Default_1_0.Instance' could not be successfully executed.
    Caused by: Binding is null, maybe this web service was introspected with an old version. Try to reintrospect it.
    fuego.lang.ComponentExecutionException: The method 'CIL_myMethod' from class 'MyProject.MyProcessName.Default_1_0.Instance' could not be successfully executed.
    Introspection went ok, although with a warning:
    Introspecting...
    downloading /DummyWebService/HelloWorld.asmx?wsdl
    parsing /DummyWebService/HelloWorld.asmx?wsdl
    checking /DummyWebService/HelloWorld.asmx?wsdl
    [Warning] The binding 'DummyWebServiceSoap12' with type 'tns:DummyWebServiceSoap'is unsupported. Components will not be generaded for this binding..
    'http://tempuri.org/' was parsed.
    Analyzing dependecies for module 'MyWebServices.HelloWorld'...
    Analyzing dependecies for module 'MyWebServices.HelloWorld'...
    Analyzing Components
    Storing Instrospected Types
    Introspection completed. Errors: 0, Warnings: 1.
    The web service is also accessible outside of the BPM environment.
    Any ideas what I'm missing here?

    I'm having the same issue with OBPM Studio 10.3.1 build #98887 when trying to invoke a Web Service introspected from OSB.
    Caused by: Binding is null, maybe this web service was introspected with an old version. Try to reintrospect it.
    When introspecting I got one warning that doesn't seem to have any relation with the runtime error:
    +[Warning] It is not recommended the usage of SOAP encoding array types, specially if you are working with document/literal WSDLs (complex type name: List in namespace: java:java.util ).+

Maybe you are looking for

  • Problems with latest iTunes version.

    I had installed the latest version of iTunes in my computer, and it works really good, but when i plug my iPod (2nd generation 20GB clickwheel) iTunes shows it and inmediately iTunes stops working. Any help for me? how can i solve this problem? Thanx

  • Correct workflow when inserting images into text, InDesign CS4

    Hi, I am new to InDesign and I have a problem regarding a really basic thing and I would be very grateful for help. I am writing an article which is about 10 pages long. It consists mostly of text. I have finished writing and now I want to add some i

  • The BT Vision Saga

    Hi guys, Over the last several months I have been experiencing problems with both BT Broadband and BT Vision. Every day between 19:00hrs and 22:00hrs (approximation) my broadband connection would become sporadic, disconnecting and reconnecting, not t

  • Dump GETWA_NOT_ASSIGNED in ALV OO

    Hi experts, i have a problem ... i created an ALV OO but when i wanna dowload the ALV's lines the program trigger a DUMP: GETWA_NOT_ASSIGNED in program SAPLKKBL ... i know that it's a clasic DUMP about ALV's ... please i need your help. Thanks. David

  • How to get list of buttons count

    how to get list of buttons count in the oracle web page (similar to child objects concept in QTP for getting buttons count in a page)