Can't get SOAP Header parameter

I am developing web services for Web Logic 9.2 server using JWS annotation. I am getting the following error when I run the service. the error is in ServiceResponse. Both Service Request and ServiceResponse is as following:
Service Request
=================
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>test </soapenv:Header>
<soapenv:Body>
<echoComplexType xmlns="http://example.org" xmlns:java="java:examples.webservices.complex">
<struct>
<java:IntValue>3</java:IntValue>
<java:StringValue>string</java:StringValue>
<!--Zero or more repetitions:-->
<java:StringArray>string</java:StringArray>
</struct>
</echoComplexType>
</soapenv:Body>
</soapenv:Envelope>
Service Response
================
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header />
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>[Server CodecHandler] Failed to decode Unable to find xml element for parameter: struct1</faultstring>
<detail>
<bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">weblogic.wsee.codec.CodecException: Unable to find xml element for parameter: struct1
at weblogic.wsee.codec.soap11.SoapDecoder.checkNullElement(SoapDecoder.java:290)
at weblogic.wsee.codec.soap11.SoapDecoder.decodeParams(SoapDecoder.java:234)
at weblogic.wsee.codec.soap11.SoapDecoder.decodeParts(SoapDecoder.java:163)
at weblogic.wsee.codec.soap11.SoapDecoder.decode(SoapDecoder.java:116)
at weblogic.wsee.codec.soap11.SoapCodec.decode(SoapCodec.java:138)
at weblogic.wsee.ws.dispatch.server.CodecHandler.decode(CodecHandler.java:138)
at weblogic.wsee.ws.dispatch.server.CodecHandler.handleRequest(CodecHandler.java:39)
at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:127)
at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:85)
at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80)
at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.java:66)
at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java:44)
at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseWSServlet.java:173)
at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:92)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:223)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3245)
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:2003)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1909)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1359)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
</bea_fault:stacktrace>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
The JWS source file is as following;
package examples.webservices.complex;
// Import the standard JWS annotation interfaces
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
// Import the WebLogic-specific JWS annotation interface
import weblogic.jws.WLHttpTransport;
// Import the BasicStruct JavaBean
import examples.webservices.complex.BasicStruct;
// Standard JWS annotation that specifies that the portType name of the Web
// Service is "ComplexPortType", its public service name is "ComplexService",
// and the targetNamespace used in the generated WSDL is "http://example.org"
@WebService(serviceName="ComplexService", name="ComplexPortType", targetNamespace="http://example.org")
// Standard JWS annotation that specifies this is a document-literal-wrapped
// Web Service
@SOAPBinding(style=SOAPBinding.Style.DOCUMENT,
               use=SOAPBinding.Use.LITERAL,
               parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
// WebLogic-specific JWS annotation that specifies the context path and service
// URI used to build the URI of the Web Service is "complex/ComplexService"
@WLHttpTransport(contextPath="complex", serviceUri="ComplexService", portName="ComplexServicePort")
/** * This JWS file forms the basis of a WebLogic Web Service. The Web Services
* has two public operations:
* - echoInt(int)
* - echoComplexType(BasicStruct)
* The Web Service is defined as a "document-literal" service, which means
* that the SOAP messages have a single part referencing an XML Schema element
* that defines the entire body.
* @author Copyright (c) 2005 by BEA Systems. All Rights Reserved.
public class ComplexImpl
     // Standard JWS annotation that specifies that the method should be exposed
     // as a public operation. Because the annotation does not include the
     // member-value "operationName", the public name of the operation is the
     // same as the method name: echoInt.
     // The WebResult annotation specifies that the name of the result of the
     // operation in the generated WSDL is "IntegerOutput", rather than the
     // default name "return". The WebParam annotation specifies that the input
     // parameter name in the WSDL file is "IntegerInput" rather than the Java
     // name of the parameter, "input".
     @WebMethod()
     @WebResult(name="IntegerOutput", targetNamespace="http://example.org/complex")
     public int echoInt(
          @WebParam(name="IntegerInput",
                    targetNamespace="http://example.org/complex")
          int input)
          System.out.println("echoInt '" + input + "' to you too!");
          return input;
     // Standard JWS annotation to expose method "echoStruct" as a public operation
     // called "echoComplexType"
     // The WebResult annotation specifies that the name of the result of the
     // operation in the generated WSDL is "EchoStructReturnMessage",
     // rather than the default name "return".
     @WebMethod(operationName="echoComplexType")
     @WebResult(name="EchoStructReturnMessage",
               targetNamespace="http://example.org/complex")
     public BasicStruct echoStruct(BasicStruct struct,
               @WebParam(name="struct1", targetNamespace="http://example.org/complex", mode=WebParam.Mode.IN, header=true)
               BasicStruct struct1)
          System.out.println("echoComplexType called");
          return struct;
BasicStruct.java
package examples.webservices.complex;
/** * Defines a simple JavaBean called BasicStruct that has integer, String, * and String[] properties */
public class BasicStruct
     // Properties
     private int intValue;
     private String stringValue;
     private String[] stringArray;
     // Getter and setter methods
     public int getIntValue()
          return intValue;
     public void setIntValue(int intValue)
          this.intValue = intValue;
     public String getStringValue()
          return stringValue;
     public void setStringValue(String stringValue)
          this.stringValue = stringValue;
     public String[] getStringArray()
          return stringArray;
     public void setStringArray(String[] stringArray)
          this.stringArray = stringArray;
     public String toString()
          return "IntValue="+intValue+", StringValue="+stringValue;
Any help is appreciated.
Thanks in advance.
Regards,
Sanjay

I am getting a similar error.
Were you able to resolve this ?

Similar Messages

  • Is there a way to get SOAP header in bpel?

    Hi,
    My web service returns a SessionID contained in the SOAP header. In Oracle PM, is there a way I could extract the SOAP header, or manipulate the SOAP header when invoking the web services? Any information would be appreciated.
    Thanks!
    Feng

    Edwin,
    I was trying your second approach, which utilizes the bpel extension to hold the header info, but with no luck.
    The provided sample (Salesforce Flow) works well, and I can see the SOAP header using TCPMonitor. Then I created a simple echo service (using bpel) to replace the Salesforce.com Enterprise Web Services, and invoke the echo service from a bpel process with the same bpel extension. However, no header was sent out.
    I guess there are something I was missing. Attached please find the wsdl file of the echo service, as well as the bpel files. Could you give me some idea what I did wrong? Or do you have any documentation about the bpel extensions?
    Thanks a lot for the good support!
    Feng
    echo.wsdl
    <?xml version="1.0"?>
    <definitions name="echo"
    targetNamespace="http://acm.org/samples"
    xmlns:tns="http://acm.org/samples"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    >
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    TYPE DEFINITION - List of types participating in this BPEL process
    The BPEL Designer will generate default request and response types
    but you can define or import any XML Schema type and use them as part
    of the message types.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <types>
    <schema attributeFormDefault="qualified" elementFormDefault="qualified"
    targetNamespace="http://acm.org/samples"
    xmlns="http://www.w3.org/2001/XMLSchema">
    <element name="echoRequest">
    <complexType>
    <sequence>
    <element name="input" type="string"/>
    </sequence>
    </complexType>
    </element>
    <element name="echoResponse">
    <complexType>
    <sequence>
    <element name="result" type="string"/>
    </sequence>
    </complexType>
    </element>
    <!-- Header Elements -->
    <element name="SessionHeader">
    <complexType>
    <sequence>
    <element name="sessionId" type="xsd:string"/>
    <element name="InvokeID" type="xsd:string"/>
    </sequence>
    </complexType>
    </element>
    <element name="QueryOptions">
    <complexType>
    <sequence>
    <element name="batchSize" type="xsd:int" />
    </sequence>
    </complexType>
    </element>
    <element name="SaveOptions">
    <complexType>
    <sequence>
    <element name="autoAssign" type="xsd:boolean"/>
    </sequence>
    </complexType>
    </element>
    </schema>
    </types>
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    MESSAGE TYPE DEFINITION - Definition of the message types used as
    part of the port type defintions
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <message name="echoRequestMessage">
    <part name="payload" element="tns:echoRequest"/>
    </message>
    <message name="echoResponseMessage">
    <part name="payload" element="tns:echoResponse"/>
    </message>
    <!-- Header Message -->
    <message name="Header">
    <part element="tns:SessionHeader" name="SessionHeader"/>
    <part element="tns:SaveOptions" name="SaveOptions"/>
    <part element="tns:QueryOptions" name="QueryOptions"/>
    </message>
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    PORT TYPE DEFINITION - A port type groups a set of operations into
    a logical service unit.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <!-- portType implemented by the echo BPEL process -->
    <portType name="echo">
    <operation name="process">
    <input message="tns:echoRequestMessage" />
    <output message="tns:echoResponseMessage"/>
    </operation>
    </portType>
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    PARTNER LINK TYPE DEFINITION
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <plnk:partnerLinkType name="echo">
    <plnk:role name="echoProvider">
    <plnk:portType name="tns:echo"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>
    echo.bpel
    <!-- echo BPEL Process [Generated by the Oracle BPEL Designer] -->
    <process name="echo" targetNamespace="http://acm.org/samples" suppressJoinFailure="yes" xmlns:tns="http://acm.org/samples" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:cx="http://schemas.collaxa.com/xpath/extension">
         <!-- ================================================================= -->
         <!-- PARTNERLINKS -->
         <!-- List of services participating in this BPEL process -->
         <!-- ================================================================= -->
         <partnerLinks>
              <!-- The 'client' role represents the requester of this service. -->
              <partnerLink name="client" partnerLinkType="tns:echo" myRole="echoProvider"/>
         </partnerLinks>
         <!-- ================================================================= -->
         <!-- VARIABLES -->
         <!-- List of messages and XML documents used within this BPEL process -->
         <!-- ================================================================= -->
         <variables>
              <!-- Reference to the message passed as input during initiation -->
              <variable name="input" messageType="tns:echoRequestMessage"/>
              <!--
    Reference to the message that will be returned to the requester
    -->
              <variable name="output" messageType="tns:echoResponseMessage"/>
         </variables>
         <!-- ================================================================= -->
         <!-- ORCHESTRATION LOGIC -->
         <!-- Set of activities coordinating the flow of messages across the -->
         <!-- services integrated within this business process -->
         <!-- ================================================================= -->
         <sequence name="main">
              <!-- Receive input from requester.
    Note: This maps to operation defined in echo.wsdl
    -->
              <receive name="receiveInput" partnerLink="client" portType="tns:echo" operation="process" variable="input" createInstance="yes"/>
              <!-- Generate reply to synchronous request -->
              <assign>
                   <copy>
                        <from expression="concat('echo: ', bpws:getVariableData(&quot;input&quot;, &quot;payload&quot;, &quot;/tns:echoRequest/tns:input&quot;))">
                        </from>
                        <to variable="output" part="payload" query="/tns:echoResponse/tns:result"/>
                   </copy>
              </assign>
              <reply name="replyOutput" partnerLink="client" portType="tns:echo" operation="process" variable="output"/>
         </sequence>
    </process>
    bpel process that invokes the echo service
    <!-- testHeader6 BPEL Process [Generated by the Oracle BPEL Designer] -->
    <process name="testHeader6" targetNamespace="http://acm.org/samples" suppressJoinFailure="yes" xmlns:tns="http://acm.org/samples" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:cx="http://schemas.collaxa.com/xpath/extension">
         <!-- ================================================================= -->
         <!-- PARTNERLINKS -->
         <!-- List of services participating in this BPEL process -->
         <!-- ================================================================= -->
         <partnerLinks>
              <!-- The 'client' role represents the requester of this service. -->
              <partnerLink name="client" partnerLinkType="tns:testHeader6" myRole="testHeader6Provider"/>
              <partnerLink name="echo" partnerLinkType="tns:echo" partnerRole="echoProvider"/>
         </partnerLinks>
         <!-- ================================================================= -->
         <!-- VARIABLES -->
         <!-- List of messages and XML documents used within this BPEL process -->
         <!-- ================================================================= -->
         <variables>
              <!-- Reference to the message passed as input during initiation -->
              <variable name="input" messageType="tns:testHeader6RequestMessage"/>
              <!--
    Reference to the message that will be returned to the requester
    -->
              <variable name="output" messageType="tns:testHeader6ResponseMessage"/>
              <variable messageType="tns:echoRequestMessage" name="i2"/>
              <variable messageType="tns:echoResponseMessage" name="o2"/>
              <variable name="header" messageType="tns:Header"/>
         </variables>
         <!-- ================================================================= -->
         <!-- ORCHESTRATION LOGIC -->
         <!-- Set of activities coordinating the flow of messages across the -->
         <!-- services integrated within this business process -->
         <!-- ================================================================= -->
         <sequence name="main">
              <!-- Receive input from requester.
    Note: This maps to operation defined in testHeader6.wsdl
    -->
              <receive name="receiveInput" partnerLink="client" portType="tns:testHeader6" operation="process" variable="input" createInstance="yes"/>
              <!-- Generate reply to synchronous request -->
              <assign>
                   <copy>
                        <from expression="12345">
                        </from>
                        <to variable="i2" part="payload" query="/tns:echoRequest/tns:input"/>
                   </copy>
                   <copy>
                        <from expression="1111">
                        </from>
                        <to variable="header" part="SessionHeader" query="/tns:SessionHeader/tns:sessionId"/>
                   </copy>
              </assign>
              <invoke partnerLink="echo" portType="tns:echo" operation="process" inputVariable="i2" bpelx:inputHeaderVariable="header" outputVariable="o2"/>
              <reply name="replyOutput" partnerLink="client" portType="tns:testHeader6" operation="process" variable="output"/>
         </sequence>
    </process>

  • Can't get my head around creating audio

    Hi,
    It's all a bit too mathematic looking for me, and I should be ashamed of myself really as I can handle complicated music sequencers, but....I can't get my head around creating the files as detailed here:
    http://www.iwebformusicians.com/Website-Music-Movies/HTML5-Audio.html
    It's got codes listed, but what do I do with them, where do I put them, how do I put them in my page etc?
    I've already got video on my site which I converted and plays OK on a PC without quicktime, but my music MP3 files won't play on some PC's, so I was looking at the above as the solution. But I'm completely lost how to start?
    Can someone run through the process from step 1, step 2 etc - I would be very grateful.
    Thanks.

    The stuff that I wrote in the section of iWeb for Musicians that you are referring to was meant as an introduction to HTML5 and how it will be used in the future. I will update it when time permits!
    Right now, Safari, Chrome and Firefox support this although the last needs an OGG file which is a pain!. Internet Explorer, of course, hasn't even got around to HTML5 yet except in V 9 which is still beta as far as I know.
    There seems to be at least half of PC users still sticking with IE Vs 6 & 7 so there's a long way to go before HTML5 is the king.
    Flash is still the way to go to reach most viewers as QuickTime is far less popular and there are problems when you try to load more than two or three files onto a web page. Due to the fact that iOS does not support flash its a question of providing an alternative.
    My, short term, solution is to provide a flash player on a page with a link to one for iOS users which has the files loaded as HTML5. The other alternative is to provide both as shown in the second example on this page.....
    http://www.iwebformusicians.com/Website-Music-Movies/Wordpress-Flash-HTML5-Audio .html
    There are a number of solutions for video available which play them as flash and fallback to HTML5 or vice versa and I gave some examples of these and how they can be adapted to audio.

  • Sender SOAP adapter: get soap header data

    Hi,
    I've been going through various posts and blogs here on SDN + looked in the how to guide for SOAP adapter, but still find it quite difficult to actually find out how to do it. I've tried to follow recommendations seen, but it doesn't add up.
    So can someone please tell me how to get an element situated in the SOAP header of the request sent to XI via sender soap adapter?
    Let's for instance say the request looks like this:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
         <SOAP-ENV:Header>
              <SSN>1234567890</SSN>
         </SOAP-ENV:Header>
         <SOAP-ENV:Body>
              <event>
                   <elem1>data 1</elem1>
                   <elem2>data 2</elem2>
                   <elem3>data 3</elem3>
              </event>
         </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    How can I get the data in the SSN-header element at mapping time?
    I'm sure this can be done by using adapter modules as the first step adapter, but I prefer doing it at mapping time if possible.
    Best Regards,
    Daniel

    I solved it on my own now. My missing link was the fact that I'm using XMLSPY to send request and thus need to replace all '&amp;' with & in Connection Endpoint.
    Message was edited by:
            Daniel Engsig-Karup

  • How can i get pr header note data into po while creating a po using pr no

    Hi all,
    Can any one tell me how can i get the PR header note's data in PO when i am creating a PO using that PR.
    and what is the name of table in which the header note's data is copied.
    Thanks
    Edited by: Saurabh.Shrivastava on Jan 17, 2012 3:54 PM

    Hi,
    Unfortunately I have to tell you that the described behaviour is not
    an Error but SAP Standard behaviour.
    Please see note 448814 question 7.
    In SAP Standard it is not foreseen to take over the header text of a
    PREQ to a PO !
    You can try to use BADI ME_REQ_HEADER_TEXT .
    I have found a document which gives coding for Purchase Requisition Header Long Text using Badi - ME_PROCESS_REQ_CUST:
    http://wiki.sdn.sap.com/wiki/display/ABAP/PurchaseReq.HeaderLongTextusingBadi-ME_PROCESS_REQ_CUST
    I hope it can help you!
    Best Regards,
    Arminda Jack

  • New itunes can't get my head around it

    Hello.
    Recently downloaded the latest version of itunes and I honestly have tried to get my head around it with plenty of good will but it just doesn't work for me. So i was wondering am I the only one or are there others? would love to hear about what you like and what you don't like here is my comments:
    genius playlist:
    why can't i see full list of previous songs played? if I would like to hear a specific previous song in the list I cannot just click it
    why can't i access song sub-menu? old itunes you could right click on the song and search for the file location for example?
    why do I need seperate windows to open when opening specific items such as downloads or genius why can't they just feature in the main screen?
    but my biggest gripe with it  is that it just generally feels overcroweded. the previous version was so clear and easy on the eye with enough information to know what was listed but not too much to make you lose focus on what you are after. This one offers so much information on everything that I cannot seem to focus any more (maybe not bright enough )
    but seriously as an example of overcrowding, it now lists all the TV series I have previously purchased and removed as already watched. Although no longer on my main hard drive it comes up as available through iclouds. I specifically stored them in a seperate hard drive to not overcrowed my itunes now they are back. and the fact that you can select to only show the non viewed TV episodes doesn't help as it shows series I have bought but haven't downloaded yet .
    am I the only one and starting to become a grumpy old man? should I just accept and adapt? looking forward to hear other peoples thoughts

    I love the new version of Grid view but some of the other changes feel like they still need some fine tuning. And I miss cover flow even if I didn't use it that often...
    You can restore much of the look & feel of the previous version with these shortcuts:
    Ctrl-B to turn on the menu bar.
    Ctrl-S to turn on the sidebar (your device should be listed here as before).
    Ctrl-/ to turn on the status bar.
    Click the magnifying glass top right and untick Search Entire Library to restore the old search behaviour.
    Use View > Hide <Media Kind> in the cloud or Edit > Preferences > Store and untick Show iTunes in the cloud purchases to hide the cloud items. The second method eliminates the cloud status column (but perhaps it does more)
    If you want to roll back to iTunes 10.7 first download a copy of the 32 bit installer or 64 bit installer as appropriate, uninstall iTunes and suppporting software, i.e. Apple Application Support & Apple Mobile Device Support. Reboot. Restore the pre-upgrade version of your library database as per the diagram below, then install iTunes 10.7.
    See iTunes Folder Watch for a tool to scan the media folder and catch up with any changes made since the backup file was created.
    tt2

  • Can we edit SOAP Header for an Outbound ABAP Proxy message?

    Hi,
    Can we add some information such as dynamic configuration to the SOAP header for the outbound ABAP Proxy from ABAP report in SAP Application System?
    Regards,
    Praveen Gujjeti.

    Hi Praveen, have you found soulution for this? Can you share it with me?
    From here http://help.sap.com/saphelp_nw70/helpdata/EN/d6/49543b1e49bc1fe10000000a114084/content.htm
    The help described that:
    Set logging in the message header. This means that this message is logged even if logging is deactivated explicitly in the configuration. The logging information is part of the message header:
    ¡        <SAP:Logging>1</SAP:Logging>
    Activates logging explicitly.
    ¡        <SAP:Logging>0</SAP:Logging>
    Deactivates logging explicitly.
    So it means that we can edit SOAP header for outbound ABAP proxy. But i haven't find the correct method to do that.

  • Get SOAP header information

    Dear,
    In our synchronous scenario SOAP <-> SAP PI <-> ABAP proxy, I face a problem reading the SOAP header from the incoming message.
    PI version used is 7.11
    This is how the incoming SOAP header looks like
    What I need is the content of field UserId.
    Already tried a lot and also ticked this option in the sender SOAP adapter: Do Not User SOAP Envelope.
    If I do that, I get an error saying premature end of file.
    Any lead is welcome.
    Thanks a lot!
    Dimitri

    Hi Dimitri,
    Have you tried to set a technical name in the ASMA attributes (Configuring the Sender SOAP Adapter (SAP Library - SAP NetWeaver Exchange Infrastructure) and later take this variable with the dynamic configuration during the mapping?
    I havent tried it, it's only an idea.
    Regards.

  • Getting SOAP Header from Bytes

    Hi,
    I am fairly new to SAAJ. I have a MDB which is dequeing JMS BytesMessage. Below is the code piece:
        if (inMessage instanceof BytesMessage) {
                    // retrieve the object
                    msg = (BytesMessage)inMessage;
                    byte load = msg.readByte();  
          ....             Now I want to be able to cast this byte to SOAP message and retrive the SOAP header say using SAAJ. Fyi, here is the beginning of my message
    <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
         <soapenv:Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
              <wsa:MessageID>GES-6b05eb12e07804b6e54089beb6122767874ae</wsa:MessageID>
    Could you please show me how to tackle this?
    Thanks in advance,
    Mustafa

    I have had no problem calling an external web service from a JCD in 5.1.2 I have been able to access and set the fields of the header portion of this external web service as long as the WSDL for the web service has used an explicit header description. If the WSDL contains and implicit header (the header is described as a separate message) I have not been successful getting visibility to the header. See http://www.softwaresummit.com/2005/speakers/TostPracticalLessonsLearnedInWebServicesDesign.pdf pages 30 - 32 it has a nice summary about the difference for header descriptions. If CAPS is cooperating with you, you should be able to import the WSDL for the external web service, create a JCD that is going to call the web service, include the OTD for the web service in your JCD and then just follow the instructions in the eGate users guide to fire off the invoke of the web service.

  • Where can I get soap.jar

    I am trying to download soap.jar for testing a SOAP client. However, all references on the web point me to xml.apache.org/soap, where I however, do not find this. Can someone please tell where I can get this?
    PS: Not sure if this is the right forum for this post. My apologies if its not.

    Praveen_Forum wrote:
    I am not sure about the scenario you are talking about...but how can we generate the client code with out this context..?Same way you'd write any other code. You don't need a container to use SOAP. Anyways, none of this helps the OP. OP are you using any sort of application server? Chances are it ships with soap.jar somewhere, have a look. Or get over to http://ws.apache.org/axis/ I'm fairly sure you'll get hold of it there

  • Boffins can u get your head around this?

    Hi im trying to implment a data structure which works exactly like Internet Explorers history.
    I could really do with some input and code alteration here. My head is starting to swim around the diff scenerios.
    So what it needs to do is add items to the history and then be able to go backwards through them and then go forwards again. However if you submit a new item then obvioulsy you lose the forward option since those infront get erased. Can any1 help me out here pls?
    Author: Justin Thomas
    Date  : 05 Nov 2001
    Notes : This class implements a circular queue for String data type.
            Making string Object would make this generic but its not needed!
    import java.lang.Exception;
    public class HistoryItems
      private int Head, Tail, QSIZE;
      private String[] Element;
      public HistoryItems(int maxSize)
        Head = 0;
        Tail = Head+1;
        QSIZE = maxSize;
        Element = new String[QSIZE];
      public boolean Empty()
        return Head == Tail;
      public int GetHead()
        return Head;
      public int GetTail()
        return Tail;
      public boolean Full()
        return (Tail + 1) % QSIZE == Head;
      public String Remove()
        String HeadElement;
        if(Empty())
          System.out.println("Warning Queue is empty");
        else
          HeadElement = Element[Head];
          // set item to null
          Element[Head] = null;
          Head = (Head + 1) % QSIZE;
          System.out.println("Head afer remove: " +((Head + 1) % QSIZE));
          System.out.println("Removed " + HeadElement);
          return HeadElement;
        return null;
        public void Add(String newItem)
            if (Full())
                //move Tail to start of array
                Tail = 0;
                System.out.println("Full");
            Element[Tail] = newItem;
            System.out.println("Added " + newItem + "Head="+Head + " Tail="+Tail);
            if (Head == Tail)
                System.out.println("Need to move head");
                Head = (Head + 1) % QSIZE;
            Tail = (Tail + 1) % QSIZE;
        public static void main (String[] args)
            HistoryItems test = new HistoryItems(5);
            test.Add("RIC1");
            test.Add("RIC2");
            test.Add("RIC3");
            test.Add("RIC4");
            test.Add("RIC5");
    /*        test.Add("RIC6");
            test.Add("RIC7");
            test.Add("RIC8");
            test.Add("RIC9");
            test.Add("RIC10");
            test.Remove();
    }

    Hi im trying to implment a data structure which works
    exactly like Internet Explorers history.IE history (or any browser's history) works far more like a stack than a queue, so trying to implement it as a circular queue will bring nothing but confusion.
    You also not only need the pages in the history, but an indicator of where the current page is in the history. If you go back, you do not remove items from the history. However, if you go back and then click on another link, you need to remove the items in the history beyond the current page.

  • Can't get my head around Power Query Append

    I have 1 spreadsheet with 6 almost identical tabs. I have added each one to PowerQuery and pre-processed it.  The result of these 6 queries are 6 identical tables.  Now I want to combine them into a single table an import into my data model.
    I see there are 2 approaches but neither are intuitive to me. I just want a single query that I select "import to data model" that will append all the data from the other 6 queries.
    Can someone give me a step by step guide?  All the sites I have looked at tell me how to combine 2 queries but I can't seem to scale the concept.
    I realise this seems like a really dumb question - sorry in advance.
    With hind site, I think I could use this approach 
    datapigtechnologies.com/blog/index.php/using-power-query-to-combine-data-from-multiple-excel-files-into-one-table/
       I will probably do that anyway.
    But I would still appreciate some guidance on the best way to append my 6 tables into 1.

    Hi Mally,
    Thanks for the feedback. Besides typing in the formula as Chris, Curt and Faisal mentioned, you could also apply Append Queries operations to append tables one by one. Note that if you launch "Append Queries" from the Power Query ribbon tab you will get
    a new query every time, but if you do it from the Query Editor dialog ribbon, Power Query adds every Append operation as a new step within the current query.
    We are well aware that this 1-by-1 append operation is a shortcoming in the Power Query UX and have plans to address it by letting users add more than one query (i.e. more than one dropdown) in the Append Queries dialog, which will effectively generate a
    similar formula to what others on this thread have proposed.
    We still don't have details on the timeline for the availability of this improvement to Append Queries, but I wanted to let you know that we are planning to address it.
    Thanks for your feedback and for using Power Query.
    Regards,
    M.

  • How can I get a header image to span full width of page?

    Hi All
    I have tried just about every thing to get this image to span the full width of the page, its fine in design mode but when I view it in preview its centred with white space either side. 

    Hi Brad
    Thanks for your reply,  I have treied that also with similar results. 

  • After adding one column in a table can't get the header line

    hi all,
    i have make a SMART FORM which was working perfectly.Now the requirement of user is to add one column in my table at smart form which i did and after modification i execute it it give me data as well but issue which i'm facing is that the TABLE at smart forms in which i have add one field is not displaying the HEADER LINE which i have define with SELECT PATTREN option.
    Thanks & Regards,
    sappk25

    Hi,
    Have you created the Header Text? If yes, then might be the case that your smartforms
    table which was already created is with Multiple Line. Check weather you have added
    customer field in Header Line or Not?
    Regards,
    SUjeet

  • Can't get running header to sync across book (CS3)

    I have a book with some master page items set to a Running Header (Paragraph Style) text variable, say, "<document title>". This works fine for all of the pages after the first one in which it's defined... but only in the first document in a book.<br /><br />I've set that document to be the style source for the book, and synchronized all the documents. I even made sure that "text variables" is checked off in the synchronize options.<br /><br />In CS3, do Running Headers not propagate throughout a book?

    No. The text variables are, but their actual value is not.
    If you have, say, the title of your book in a running header, you will have to put it on one of your master pages and use that instead.
    Another trick (warning: a dirty one) is to put the text for the running header in "invisble" text, somewhere on your first page. Set its size to 0.1pt, leading to 0pt, and color to "None". A bit harder to edit than a master page, though.

Maybe you are looking for

  • Safari a quitté de manière inopinéek

    Hello everyone! I really need some help: safari doesn't work anymore on my MacBook Air. Since I made all the updates (04.01.2015), Safari doesn't work anymore. Please help me Thanks a lot in advance! Linda Error message: Process:               Safari

  • Csv with double quotes

    Hello, I've had harsh time trying to figure out how to read a csv file with double quotes, I need to read a csv file in order to fill a spreadsheet. I attach a csv file example to show the sort of file I'm working on. Thank you Raymundo Cassani Solve

  • SQL Optimization with join and in subselect

    Hello, I am having problems finding a way to optimize a query that has a join from a fact table to several dimension tables (star schema) and a constraint defined as an in (select ....). I am hoping that this constraint will filter the fact table the

  • Tagging a story

    Hi All, I have xml elements in structure view (see attached Sample.xml file for elements) I created three text frame I am trying to tag these frame with xml elements shown in structure view as follows How I could tag each text frame with diffrent ele

  • Scheduling Jon in OEM

    Hi, I want to write a shell script to Send a mail if any ORA error occurs in Alert.log file .This job has to be configured thru OEM . below is my code (right now I am searching alertlog.file and writng these ORA errors to a file ) sqlnet.sh cd /oracl