SOAPAction header

Hi every1,
Does anyone know how to add SOAPAction header in JAXM (java.xml.soap.*)?
message.getSOAPPart().addMimeHeader( "SOAPAction", "\"urn:schemas-microsoft-com:xml-analysis:Execute\"" ) doesn't work.
Thanx.

No help is required,
the answer is:
MimeHeaders mimeHeaders = message.getMimeHeaders();
mimeHeaders.addHeader("SOAPAction", "\"urn:schemas-microsoft-com:xml-analysis:Execute\"");
                              message.saveChanges();

Similar Messages

  • SOAPAction header in OSB..

    Hi,
    I have a .Net web service and it uses SOAPAction http header to determine invoking operations. When i use the WSDL in SOAPUI, it passes the SOAPAction header and able to invoke successfully but when i include the WSDL as a business service and configure with proxy service i am not able to call the proxy service. The .net service provider is throwing error. Then i included the SOAPAction header using transport header in the message flow and hard coded with the value in WSDL for before calling the service. From the service bus console, i could see the SOAPAction header being set in the invocation trace. But still i couldn't invoke the .net web service.
    When i invoke the business service which OSB should act as a pure web service client, i am getting the below error. But there is no issue with SOAPUI.
    <soap:Fault>
    <faultcode>soap:Client</faultcode>
    <faultstring>
    System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://tempuri.org/RetrieveUENDetailsByName.
    at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
    at System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message)
    at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
    at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response)
    at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean&amp; abortProcessing)
    </faultstring>
    <detail/>
    </soap:Fault>
    Does any one has encountered such an issue?
    Thanks,
    Kuppusamy.V.,
    Edited by: Ichiban_indian on Jun 18, 2010 6:15 PM
    Edited by: Ichiban_indian on Jun 18, 2010 6:32 PM

    You can access the MQ transport headers in the assign/replace actions using the relative xpath of the $inbound variable. This is available for any transport.
    Please find a snapshot @ https://dl.dropboxusercontent.com/u/19901533/access_inbound_mqheaders.JPG
    Also ensure that you configure the Get All Headers property+ to yes on the Transport Configuration of your proxy.
    Thanks,
    Patrick

  • Mac Mail no longer includes SOAPAction header in HTTP request to Exchange

    This appears to have started somewhere between Snow Leopard and the latest patch of Mail. The change is breaking all of our remote users because our reverse-proxy validates the SOAPAction header, which is common practice. Entourage works fine. Outlook for Mac works fine.
    If anyone knows how to make Mail add the SOAPAction header please let me know.
    Thanks!

    Yes! This is a JWS (Document literal) deployed to WebLogic 10.3.
    <s1:operation name="generateCsvFiles">
    <s4:operation soapAction="urn:generateCsvFiles" style="document"/>
    <s1:input>
    <s4:body parts="parameters" use="literal"/>
    <wsp:Policy>
    <wsp:PolicyReference URI="#saml-username-AuthPolicy"/>
    </wsp:Policy>
    </s1:input>
    <s1:output>
    <s4:body parts="parameters" use="literal"/>
    </s1:output>
    <s1:fault name="StatsAdminException">
    <s4:fault name="StatsAdminException" use="literal"/>
    </s1:fault>
    </s1:operation>

  • SBL-ODU-01007 - The HTTP request did not contain a valid SOAPAction header

    I am trying to insert a Lead using the following XML
    SOAPAction: "document/urn:crmondemand/ws/ecbs/lead/10/2004:LeadInsert"
    URL: https://secure-ausomxbia.crmondemand.com/Services/Integration
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:ns2="urn:crmondemand/ws/ecbs/lead/10/2004" xmlns:ns3="urn:/crmondemand/xml/Lead/Data">
    <env:Header>
    <ns1:Security>
    <ns1:UsernameToken>
    <ns1:Username>****</ns1:Username>
    <ns1:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">****</ns1:Password>
    </ns1:UsernameToken>
    </ns1:Security>
    </env:Header>
    <env:Body>
    <ns2:LeadInsert_Input>
    <ns3:ListOfLead lastpage="true" recordcount="1">
    <ns3:Lead>
    <ns3:ExternalSystemId>3232323</ns3:ExternalSystemId>
    <ns3:LeadFirstName>soap</ns3:LeadFirstName>
    <ns3:LeadLastName>test</ns3:LeadLastName>
    </ns3:Lead>
    </ns3:ListOfLead>
    <ns2:Echo>off</ns2:Echo>
    </ns2:LeadInsert_Input>
    </env:Body>
    </env:Envelope>
    I am getting following response.
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <soap:Fault>
    <faultcode>soap:Client</faultcode>
    <faultstring>Client</faultstring>
    <detail>
    <ErrorCode>SBL-ODU-01007</ErrorCode>
    <ErrorMessage>The HTTP request did not contain a valid SOAPAction header. The value of the header was </ErrorMessage>
    </detail>
    </soap:Fault>
    </soap:Body>
    </soap:Envelope>
    I have checked the URL and SOAPAction seem to be correct, can somebody please let me know what can be the problem.
    Thanks.

    I am trying to insert a Lead using the following XML
    SOAPAction: "document/urn:crmondemand/ws/ecbs/lead/10/2004:LeadInsert"
    URL: https://secure-ausomxbia.crmondemand.com/Services/Integration
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:ns2="urn:crmondemand/ws/ecbs/lead/10/2004" xmlns:ns3="urn:/crmondemand/xml/Lead/Data">
    <env:Header>
    <ns1:Security>
    <ns1:UsernameToken>
    <ns1:Username>****</ns1:Username>
    <ns1:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">****</ns1:Password>
    </ns1:UsernameToken>
    </ns1:Security>
    </env:Header>
    <env:Body>
    <ns2:LeadInsert_Input>
    <ns3:ListOfLead lastpage="true" recordcount="1">
    <ns3:Lead>
    <ns3:ExternalSystemId>3232323</ns3:ExternalSystemId>
    <ns3:LeadFirstName>soap</ns3:LeadFirstName>
    <ns3:LeadLastName>test</ns3:LeadLastName>
    </ns3:Lead>
    </ns3:ListOfLead>
    <ns2:Echo>off</ns2:Echo>
    </ns2:LeadInsert_Input>
    </env:Body>
    </env:Envelope>
    I am getting following response.
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <soap:Fault>
    <faultcode>soap:Client</faultcode>
    <faultstring>Client</faultstring>
    <detail>
    <ErrorCode>SBL-ODU-01007</ErrorCode>
    <ErrorMessage>The HTTP request did not contain a valid SOAPAction header. The value of the header was </ErrorMessage>
    </detail>
    </soap:Fault>
    </soap:Body>
    </soap:Envelope>
    I have checked the URL and SOAPAction seem to be correct, can somebody please let me know what can be the problem.
    Thanks.

  • No SOAPAction Header

    I am new to BPEL. I have been tasked to build a proof of concept for an ESB. This proof of concept entails using VB 6 to access a BPEL process. The BPEL process accesses a web service into a legacy mainframe. I have the BPEL process working and am able to get data when I initiate an instance from within the BPEL console. However, I have found it difficult to find examples for accessing BPEL processes from VB 6. At the moment I am using the WinHttpRequest object and calling the location of the wsdl that is in the BPEL console but I am getting a "No SOAPAction header" xml in the ResponseText and the BPEL process is not being instantiated.
    Does anyone know of a resource where I could get some examples from?

    Update... I was able to modify the wsdl manually from within BPEL and have been able to deploy it both RPC and DOCUMENT styles. Obviously the PM adds the additional tags, if they are not present, upon deployment.
    Now I am back to my previous problem (as follows). the style is "RPC", I can initiate the process, the process completes sucessfully, the BPEL Console workflow shows the proper data being returned to the client, but in the VB code I get the error message below.
    Does anyone know what I am missing or doing wrong?
    Thank you. I have used the MS Soap kit and have been
    able to initiate the BPEL webservice using the
    following code. Now I am getting an error...
    "SoapMapper:Restoring data into SoapMapper string
    g failed HRESULT=0x80070057: The parameter is
    incorrect. - Client: Unspecified client error.
    HRESULT=80070057: The parameter is incorrect."
    This happens at the "cRetVal =
    soapClient.process("GREC1,$#$CV1438813B")" line of
    code. Any ideas?
    Function...
    'Create the SOAP Client
    Dim soapClient As MSSOAPLib30.SoapClient30
    Set soapClient = New MSSOAPLib30.SoapClient30
    'soapClient.ClientProperty("ServerHTTPRequest") =
    ") = True
    'Initialize the soap client and pass the URL for
    'the WSDL file as a parameter
    Dim cWSDL As String
    cWSDL =
    DL =
    "http://discovery.mfia.state.mi.us:9700/orabpel/defaul
    t/BullTPRprocessSWSS/1.0/BullTPRprocessSWSS?wsdl"
    Call soapClient.MSSoapInit(cWSDL)
    'Call the Execute() method and display the
    the results
    Dim cRetVal As String
    cRetVal =
    al = soapClient.process("GREC1,$#$CV1438813B")
    MsgBox (cRetVal)
    End Function...

  • SOAP Receiver adapter : SOAPAction Header appears 2 times using ASMA param

    Hi,
    I'm using a PI7.1 SOAP  receiver channel that uses the ASMA variable THeaderSOAPAction to dynamically add the SOAP action during the mapping. All works fine except that apparently also the 'standard'  SOAP action field from the adapter still appears in the request.
    ( regardless of whether its empty or not )
    e.g. the headers from my message look like this
    Content-Type: text/xml; charset=utf-8
    Content-Length: 863
    SOAPACTION: "test"
    SOAPACTION: "SetFromASMA"
    I'm using conf.put to set the variable in the map. Should I use other method to 'replace' the existing ?
    Did somebody experience this as well ? Any suggestions ?
    rgds
    Dirk

    Hi Michael,
    Yes, I did see this but :
    1) The 'replace' command here is just a java string replace command to manipulate the content before setting the dynamic variable ( nothing to do with replacing an existing dynamic variable in the HTTP headers )
    2) I did add first a 'get' to my code after seeing this but that did not work neither ( it even seems that at the time of mappnig execute the static value from the channel is not yet known as the 'get' returns a blank value for the key. ( but then again this is normal because we are only at the mapping step )
    It seems that the adapter does not check upfront ig a SOAPACTION was already present or not
    ( I think this worked in PI 7.0 )
    I will submit an oss,
    rgds
    dirk

  • SOAPAction Header field case sensitive

    Hi gurus,
    I am trying to consume a webmethods java webservice via XI/PI NW2004 and when I send a request, PI send the soapaction field in uppercase.
    POST http://webservices.kuehne-nagel.com/HelloWorld_test HTTP/1.0
    Accept: /
    Host: https://webservices.kuehne-nagel.com/HelloWorld_test
    User-Agent: SAP-Messaging-com.sap.aii.messaging/1.0505
    content-id: <soap-4C4DF1260912013BE10080009E344EB9sap.com>
    Content-Type: text/xml; charset=utf-8
    Content-Length: 316
    SOAPACTION: "http://webservices.kuehne-nagel.com/helloWorld/hello"
    It should be like SOAPAction : "http://webservices.kuehne-nagel.com/helloWorld/hello"
    How can I set/change it on XI/PI ?
    Regards,
    Rodolfo Miã

    Gourav,
    This is W3 Standard:
    HTTP verbs are case sensitive. (http://www.w3.org/TR/wsdl)
    In my case, the webservice provider was implemented in JAVA code and in Linux server. Java and Linux are case sensitive.
    I agree with you if we are working with .NET implementation.
    I  already have tried to consume a .Net asmx webservice and works fine.

  • ESB requires "SOAPAction" to be set in HTTP header?

    I'm trying to insert an ESB flow between an existing web service and client. The service and client were previously built with Apache Axis.
    By generating an appropriate WSDL (doc/wrapped rather than Axis' default RPC style) for the existing service, I'm able to connect the ESB to the service.
    The problem is that the existing client (built using Axis) sets the SOAPAction in the HTTP header to empty (SOAPAction: ""), and the ESB appears to require this to be set to the desired operation. If this is a hard requirement, then I can't directly connect the existing client to the ESB flow.
    So, the question is whether it's possible to have the ESB relax the requirement for the SOAPAction header. And if so, how?
    If I can't get the ESB to accept SOAP requests with an empty SOAPAction, then I'll have to create a custom adapter or insert an additional proxy layer (yuk). Anyone else have any suggestions?

    This is all done automatically by FB.
    Just to try something out I just now made a simple app with a label only and tried to upload to Google... FAILED!!!!
    "Market requires versionCode to be set to a positive 32-bit integer in AndroidManifest.xml"
    LOL, FB can't even create this. :-/
    <?xml version="1.0" encoding="utf-8" standalone="no"?>
    <application xmlns="http://ns.adobe.com/air/application/3.1">
    <!-- Adobe AIR Application Descriptor File Template.
              Specifies parameters for identifying, installing, and launching AIR applications.
              xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/3.1
                                  The last segment of the namespace specifies the version
                                  of the AIR runtime required for this application to run.
              minimumPatchLevel - The minimum patch level of the AIR runtime required to run
                                  the application. Optional.
    -->
    Message was edited by: KesherMedia.Com

  • No SOAPAction in dynamic proxy client

    I am trying to consume a .NET Web service from a J2EE client. I am using a dynamic proxy client from http://java.sun.com/webservices/docs/1.3/tutorial/doc/JAXRPC5.html#wp79973
    However, I am have a problem with the SOAPAction HTTP header. .NET requires this header element to be set but the proxy sends an empty SOAPAction header. What is the solution to this problem?

    message.getHeaders().addHeader("SoapAction","http://some.action.here");
    this piece of code is not working. This what i'm using.
    my .net service is running at ""http://192.168.4.214/dmwebservice/service1.asmx";" and my method name is "disconnect_cabinet"
    mesg.getMimeHeaders().addHeader("POST" , " /dmwebservice/service1.asmx HTTP/1.1");
    mesg.getMimeHeaders().addHeader("HOST" , " http://192.168.4.214");
    mesg.getMimeHeaders().addHeader("SOAPAction", " http://tempuri.org/disconnect_cabinet");
    the request & response is:
    [java] **** request ****
    [java] <?xml version="1.0" encoding="utf-8"?>
    [java] <SOAP-ENV:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/so
    ap/encoding" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs
    d="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema
    -instance"><SOAP-ENV:Header><SOAPAction xmlns="http://192.168.4.214/dmwebservice
    /service1.asmx/disconnect_cabinet"/></SOAP-ENV:Header><SOAP-ENV:Body><disconnect
    _cabinet xmlns="http://tempuri.org/"><credentials>123456</credentials></disconne
    ct_cabinet></SOAP-ENV:Body></SOAP-ENV:Envelope>
    [java] **** response ****
    [java] <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="htt
    p://schemas.xmlsoap.org/soap/envelope/"><soap:Header><wsu:Timestamp xmlns:wsu="h
    ttp://schemas.xmlsoap.org/ws/2002/07/utility"><wsu:Created>2004-06-28T05:00:50Z<
    /wsu:Created><wsu:Expires>2004-06-28T05:05:50Z</wsu:Expires></wsu:Timestamp></so
    ap:Header><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>
    System.Web.Services.Protocols.SoapHeaderException: The message is not a valid XM
    L message ---> System.Xml.XmlException: 'soap' is an undeclared namespace. Li
    ne 2, position 20.
    [java] at System.Xml.XmlNSAttributeTokenInfo.FixNames()
    [java] at System.Xml.XmlTextReader.ParseElement()
    [java] at System.Xml.XmlTextReader.Read()
    [java] at Microsoft.Web.Services.XmlSkipDTDReader.Read()
    [java] at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
    [java] at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, B
    oolean preserveWhitespace)
    [java] at System.Xml.XmlDocument.Load(XmlReader reader)
    [java] at Microsoft.Web.Services.SoapEnvelope.Load(Stream stream)
    [java] at Microsoft.Web.Services.WebServicesExtension.BeforeDeserializeS
    erver(SoapMessage message)
    what does this means and how can i fix? "The message is not a valid XML message ---> System.Xml.XmlException: 'soap' is an undeclared namespace. Line 2, position 20."
    please let me know.
    subhani.

  • Custom SOAPAction for Oracle ESB?

    Hi, I was wondering if it is possible to customize the SOAPAction header that Oracle ESB expects for its endpoints. Thanks!

    I assume you mean Outbound from ESB using an ESB SOAP Service. Are you referring to HTTP header or SOAP header? SOAP headers can be manipulated using ESB header support as shown on otn.oracle.com/goto/esb while HTTP headers cannot except for basic authentication using endpoint properties in ESB Control.

  • JAXM and SOAPAction - Big problem?

    Hi,
    whenever connecting to a WebService provider I need to set the SOAPAction header. JAXM seems to provide no way to do this. Can this be true?
    Yours,
    Stefan

    Hi,
    Does JAXM not handle SOAPActions implicitly? A SOAPaction indicates the intent of a SOAP message. A SOAPAction is given as a url, often this url indicates a jsp or servlet that must handle the request being sent. Is this not implicit in the destination of a message? The message endpoints and the address of actors are given as urls. The endpoints or actors are themselves SOAP services which can be implemented as Servlets which receive SOAP messages in the HTTP request. Could you not regard these urls as implicit SOAPActions? You can create an actor to embody each desired SOAPAction. An actor is an intermediary service between the sender and the receiver. The actor is identified by an url. A SOAPHeaderElement is created with the actor reference and some fields that they must handle. These fields could provide information on how to handle the message or to change some information in the message. The changed message is then sent on to the next actor or the ultimate receipient.
    Those are just my thoughts.

  • SOAPAction Not Supported

    Hey all,
    I'm attempting to use cfhttp to connect to a webservice but I'm having trouble figuring out the proper SOAPAction header to send.
    The wsdl can be found here: https://services.frx.com/speakerprogramdevelopment/vendorservice.wsdl
    I want to use the CreateProgram method but no matter what I put in my SOAPAction header all I get back is 500 error: The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).
    my cfhttp code:
    <cfhttp url="https://services.frx.com/speakerprogramdevelopment/vendorservice.svc" method="post" result="httpResponse">
    <cfhttpparam type="header" name="SOAPAction" value="https://services.frx.com/speakerprogramdevelopment/VendorService/CreateProgram"/>
    <cfhttpparam type="header" name="accept-encoding" value="no-compression"/>
    <cfhttpparam type="xml" value="#trim( soapBody )#"/>
    </cfhttp>
    Thanks

    Nevermind - I think I just figured it out, this SOAPAction value worked: http://tempuri.org/IVendorService/CreateProgram

  • Calling BI Publisher Web Service from pl/sql

    I am trying to call the BI publisher web service from pl/sql.
    I get the following response back
    <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <soapenv:Fault>
    <faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Client.NoSOAPAction</faultcode>
    <faultstring>no SOAPAction header!</faultstring>
    <detail>
    <ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">my-obiee</ns2:hostname>
    </detail>
    </soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>
    The bit that concerns me is
    <faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Client.NoSOAPAction</faultcode>
    <faultstring>no SOAPAction header!</faultstring>
    The code that I used to call this is
    DECLARE
    req utl_http.req;
    resp utl_http.resp;
    value VARCHAR2(1024);
    p_data_type varchar2(4000):= 'application/soap+xml;';
    p_data_in VARCHAR2(3000) :=
    '<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pub="http://xmlns.oracle.com/oxp/service/PublicReportService">
    <soapenv:Body>
    <pub:scheduleReport xmlns:pub="http://xmlns.oracle.com/oxp/service/PublicReportService">
    <scheduleRequest>
    <deliveryRequest>
    <ftpOption>
    <ftpServerName>ino-ed-oel2.inoapps.com</ftpServerName>
    <ftpUserName>*******</ftpUserName>
    <ftpUserPassword>*****</ftpUserPassword>
    <remoteFile>/opt/UAT/db/tech_st/11.1.0/employees.pdf</remoteFile>
    </ftpOption>
    </deliveryRequest>
    <reportRequest>
    <attributeFormat>pdf</attributeFormat>
    <reportAbsolutePath>http://10.100.100.44:9704/xmlpserver/~administrator/XXXXXXX.xdo</reportAbsolutePath>
    <parameterNameValues>
    <item>
    <name>dname</name>
    <multiValuesAllowed>false</multiValuesAllowed>
    <values>
    <item>153002</item>
    </values>
    </item>
    </parameterNameValues>
    </reportRequest>
    <userJobName>BILL</userJobName>
    </scheduleRequest>
    <userID>******</userID>
    <password>******</password>
    </pub:scheduleReport>
    </soapenv:Body>
    </soapenv:Envelope>';
    BEGIN
    --utl_http.set_proxy('proxy.my-company.com', 'corp.my-company.com');
    req := utl_http.begin_request('http://10.100.100.44:9704/xmlpserver/services/PublicReportService?wsdl', 'POST');
    utl_http.set_header(req, 'content-type', p_data_type);
    utl_http.set_header(req, 'content-length', length(p_data_in));
    utl_http.set_header(req, 'User-Agent', 'Mozilla/4.0');
    utl_http.write_text(req, p_data_in);
    resp := utl_http.get_response(req);
    dbms_output.put_line ('status code: ' || resp .status_code);
    dbms_output.put_line ('reason phrase: ' || resp .reason_phrase);
    LOOP
    utl_http.read_line(resp, value, TRUE);
    dbms_output.put_line(value);
    END LOOP;
    utl_http.end_response(resp);
    EXCEPTION
    WHEN utl_http.end_of_body THEN
    utl_http.end_response(resp);
    END;
    Any help would be greatly received

    I had the same problem this morning. You need to add a line to the HTTP header to declare a value for SOAPAction.
    You can set this as an empty string, but for some reason it is required.
    Try adding this among your header declarations:
    utl_http.set_header(req, 'SOAPAction', '');

  • How to consume XML Gateway WS from a remote Oracle DB (10g)?

    Hi,
    I'm currently looking into consuming EBS web services, particularly the XML Gateway service from a remote database. For ease of use, I'm also using an Oracle 10g database.
    It seems there are several ways to skin a cat though. Hope you can help.
    1) Is it possible to use UTL_HTTP for this? If yes, can you please explain in detail as I have been trying to do this the past few days without success. Note, I was able to consume other web service examples, though. What url & SOAP action should I use?
    2) I built a proxy client stub using JDeveloper and deployed it to the DB. However my plsql procedure doesn't execute the java class. Any thoughts?
    Thanks,
    Charina

    Hi Charina,
    Regarding option 1), the url for the service endpoint and the value for the SOAPaction HTTP heaader are advertized in the WSDL for your service.
    The value of the utl is provided by the 'location' attribute for the soap:address element within a port.
    The value for the SOAPaction header is provided by the 'soapAction' attribute for the soap:operation element within a wsdl:binding/wsdl:operation element.
    You can have multiple ports and bindings advertized in a single WSDL. If this is the case for you, you need to make sure that the operation you are tryin to invoke is from the SOAP binding; the one with the transport attribute set to "http://schemas.xmlsoap.org/soap/http".
    Here is a WSDL snippet for illustration purposes:
      <binding name="CalculatePricePort" type="tns:CalculatePricePort">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
                      style="document"></soap:binding>
        <operation name="CalculatePrice">
          <soap:operation soapAction="document/http://siebel.com/OrderManagement/Quote/PSP:CalculatePrice"></soap:operation>
          <input>
            <soap:body use="literal"></soap:body>
          </input>
          <output>
            <soap:body use="literal"></soap:body>
          </output>
        </operation>
      </binding>
      <service name="CalculatePriceWS">
        <port binding="tns:CalculatePricePort" name="CalculatePricePort">
          <soap:address location="http://130.35.90.150/eai_enu/start.swe?SWEExtSource=SecureWebService&amp;SWEExtCmd=Execute&amp;UserName=XXXX&amp;Password=XXXX"></soap:address>
        </port>
      </service>Note that I took an example where both attributes are not using common format.
    To try to get this working faster, you may want to try to use an existing JAVA (or .Net) client and compare the working payload with what is generated by the UTL_HTTP package. It's usually faster to work of a working sample that to double guess why it's not working.
    Hope it helps,
    -Eric

  • How do I submit a form to a LC process using the process fields component in LC Designer

    I have a PDF Form with the Process Fields component attached.<br /><br />In the FSSubmit component, I have set the URL to <br />http://localhost:8080/soap/services/SAPS_Submission?wsdl, <br />where SAPS_Submission is the name of my process.<br /><br />I open the form through a Flex app, fill out the form and press submit, but get the following error:<br /><br />  <?xml version="1.0" encoding="utf-8" ?> <br />- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><br />- <soapenv:Body><br />- <soapenv:Fault><br />  <faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Client.NoSOAPAction</faultcode> <br />  <faultstring>no SOAPAction header!</faultstring> <br />- <detail><br />  <ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">dtross</ns2:hostname> <br />  </detail><br />  </soapenv:Fault><br />  </soapenv:Body><br />  </soapenv:Envelope><br /><br />The LC process has the schema for the form as an input variable, which is used in the execution of a insertSQLStatement.<br /><br />My knowledge of the process fields component is sketchy at best, but from what I understand, I can use it to submit to workbench without using a servlet?<br /><br />Any help with getting the data from the form to the process using this technique, or clarification about what I should actually be doing would be greatly appreciated...<br /><br />Thanks<br /><br />Ross Malan

    The process fields are ONLY needed if you're planning to use the form offline or through email. If you submit the data back to a servlet, you just need to put a submit button on the form.
    Jasmin

Maybe you are looking for

  • Mass for PO

    when i m doing  Purchase order deletion by MAss t.code than system showing error msg... Purchasing document has release indicator R (changes not possible)       Message no. 06683                                                pls tell me how i will d

  • Problem to get Web admin access on cisco ISE

    Hi, We are currently having problems to access via Web admin UI to cisco ISE. after we put the password, we get this message on screen: authentication failed due to zero RBAC group. The ISE version that we are using is: 1.1.2.145 path 3 Do you have a

  • Where is the source panel?

    In order to restore my iPod (cause its nothing but a pain in the rear!) I have to do the following: After a few moments, your iPod will appear in the Source panel in iTunes. Select your iPod in the Source panel and you will see information about your

  • Epson RX 620 - Drivers removed - ghost in Scanner sharing

    I'am trying to get rid of Scanner Sharing with My Epson RX620. I have deleted all the driver files for Epson, but the entry is still there? In printed sharing the entry is gone.. This causes the symptom that I can't enable (it won't stay) my new HP-A

  • App Store reports Lion installed, but Mac still at 10.6.8

    So did Apple just pull the plug on installing OS X 10.7 Lion for now? I did the app stor purchase of OS X Lion and the app store went thru the "install" process.  My Mac Pro was at 10.6.7 (or 10.6.6 if memory fails me) and I think the app store kicke