Unable to pass XMlL version tag to the backend from Proxy Service

Hi All,
I have problem in sending xml version tag "<?xml version="1.0" encoding="UTF-8"?>" to a backend as my backend is expecting the input along with the xml version tag.
I have done with following thing but that doesnot work for me:
1)What is happening when i am trying to insert the xml tag inside a body.The body is not able to recognise the same and it construct the request without the versioning tag.
2)In assign node i have tried putting the version tag but here tag is reflected inside the body with "&lt;?xml version="1.0" encoding="UTF-8"?>" it means internally it is making it serialize the and make the starting angle bracket as an HTML tag.In this scenario my backend throws an error "unable to parse the xml".
3)I have tried with CDATA also but here also the same thing is happening as in case 2.
Please help me if nay one knows the solution for this.
Regards,
Rajeev Goel

yes. u can pass the parameter by below code
var myProxy =SOAP.connect('http://localhost:100/Service1.asmx?WSDL');
var value1="hai";
var result=myProxy.Helloworld(serverValue:value1);
app.alert(result);
The web service Helloworld Method should be like
string Helloworld(string serverValue)
return serverValue+" EveryBody";

Similar Messages

  • Route the request from Proxy Service in OSB to external BusinessService URL

    Hi,
    How to route the request from Proxy service to the Business Service(Which is not registered in the OSB) using End point URL.Dynamically look up the URL and route the req from Proxy to Business service.
    thanks in Advance
    Edited by: user10680427 on Jul 14, 2009 2:57 AM
    Edited by: user10680427 on Jul 14, 2009 3:34 AM

    Hi..
    Just set in within a routing options in a route node, either dynamic routing or just setting the uri, depends on your specific case..

  • I am unable to set up my iphone 5 after reset since am getting a error stating 'unable to reach server' . i tried restoring the same from my computer  but  i get a error stating server unavailable' .  please help me as my phone is stuck at the set up page

    i am unable to set up my iphone 5 after reset since am getting a error stating 'unable to reach server' . i tried restoring the same from my computer  but  i get a error stating server unavailable' .  please help me as my phone is stuck at the set up page. so i have already tried recovery mode as well.

    Contact Apple support for warranty service.

  • HT4014 i want to update mac os x 10.6.3 version i got the dvd from apple store can u help me how to install this dvd???

    i want to update mac os x 10.6.3 version i got the dvd from apple store can u help me how to install this dvd???

    OS X 10.6 Snow Leopard
    Installation and Setup Guide
    Backup first, in case of problems.

  • How to delete the cache from Presentation Services(Web UI)

    Hi,
    How to delete the cache from Presentation Services(Web UI) and from rpd also.

    Hi,
    For Presentation services cache refer : http://gerardnico.com/wiki/dat/obiee/presentation_service_cache
    For RPD Cache :
    Admin tool(rpd) > Manage > Cache > Action > Purge
    or check following links
    http://gerardnico.com/wiki/dat/obiee/event_table
    http://oraclebi.blog.com/automating-cache-purging-without-using-obiee-scheduler/
    cheers
    Aravind

  • Mera, (this has always been sucessful) however the pictures would not download, and appear to be encrypted and unable to view.  This also erased the pictures from the memory card. Help?

    I tried to download my pictures with my memory card from my camera (this has always been sucessful) however the pictures would not download, and appear to be encrypted and unable to view, also not saved in my 'Iphotos'  This also erased the pictures from the memory card. Help.....anyway of retrieving them?

    With the amount of information you've provided it's impossible to offer a potential solution.  We can't see your computer so we need to know the details of your problem and setup, i.e.:
    what version of iPhoto are you using?
    what system version are you running?
    did you get a message when trying to import from the memory card?
    did you use a card reader?
    what was you exact workflow for attempting the import?
    what fixes have you tried?
    where is your library located?
    did you apply any updates or upgrades just prior to the problem occurring?
    are you running a "managed" or "referenced" library? See image below:
    what type of Mac?
    how much free space on your boot drive?
    OT

  • My trial version of dreamweaver won't open... Please help as the people from customer service refuse to! :(

    I downloaded a trial version of dreamweaver. It worked for a
    few days, then stopped working. When I click on the desktop icon it
    loads and asks me if I want to continue with my trial (29 days
    left) or enter serial number. When I click continue with trial a
    "Dreamweaver 8" banner comes up (indicating it is loading) then it
    closes. I phoned technical support and wasn't able to get through
    several times. When I finally did (after 45 minutes) the conclusion
    they gave me was that THEY COULD NOT HELP ME FOR "FREE" because it
    was a trial version. I really want to learn this program and would
    really appreciate any help. I also checked out the dreamweaver
    download trouble-shooting page and tried a few things which did not
    seem to help. My computer is fairly new and has more than enough
    memory (160G or so?).
    THANK YOU SO MUCH FOR ANY HELP!

    I'll try. What are your machine specs. You say 160G of
    memory? I am
    assuming you mean a 160 gb hard drive. That is not memory.
    How much RAM do
    you have? What operating system are you running?
    Did you download the trial from the Adobe site? Do you have
    antivirus or
    firewall software that might be blocking the program?
    Nancy Gill
    Adobe Community Expert
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
    A Beginner''s
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "Catherine Lalonde" <[email protected]>
    wrote in message
    news:epc33v$93o$[email protected]..
    >I downloaded a trial version of dreamweaver. It worked
    for a few days, then
    > stopped working. When I click on the desktop icon it
    loads and asks me if
    > I
    > want to continue with my trial (29 days left) or enter
    serial number. When
    > I
    > click continue with trial a "Dreamweaver 8" banner comes
    up (indicating it
    > is
    > loading) then it closes. I phoned technical support and
    wasn't able to get
    > through several times. When I finally did (after 45
    minutes) the
    > conclusion
    > they gave me was that THEY COULD NOT HELP ME FOR "FREE"
    because it was a
    > trial
    > version. I really want to learn this program and would
    really appreciate
    > any
    > help. I also checked out the dreamweaver download
    trouble-shooting page
    > and
    > tried a few things which did not seem to help. My
    computer is fairly new
    > and
    > has more than enough memory (160G or so?).
    >
    > THANK YOU SO MUCH FOR ANY HELP!
    >

  • OSB question : passing a user defined transport header to a proxy service

    Hi All,
    I have a proxy service that calls another proxy service. The protocol for the "called proxy service" is set to local. The calling proxy service has a "transport header" action to add a user defined header to the outbound request.
    I log the outbound request in the calling proxy service before publishing/calling the other proxy service. It does have header set as expected. But the called proxy service does not get this header.
    As a note in the "transport" tab "get all headers" is set to true.
    Please suggest
    Here is the outbound xml gets printed just before calling the proxy service
    <con:endpoint name="BusinessService$userProvisioning$businessService$HttpMessageSender" xmlns:con="http://www.bea.com/wli/sb/context">
    <con:service/>
    <con:transport>
    <con:uri>http://localhost:8064/ProvisioningService/</con:uri>
    <con:mode>request-response</con:mode>
    <con:qualityOfService>best-effort</con:qualityOfService>
    <con:request xsi:type="http:HttpRequestMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
    <tran:user-header name="JMS_BEA_RedeliveryLimit" value="1"/>
    <tran:user-header name="JMSDeliveryMode" value="2"/>
    <tran:user-header name="JMSExpiration" value="0"/>
    <tran:user-header name="JMSMessageID" value="ID:&lt;914937.1294164899050.0>"/>
    <tran:user-header name="JMSPriority" value="4"/>
    <tran:user-header name="JMSRedelivered" value="false"/>
    <tran:user-header name="JMSTimestamp" value="1294164899050"/>
    <tran:user-header name="JMSXDeliveryCount" value="1"/>
    *<tran:user-header name="reResolvedAddress" value="http://LPF004689:8080/axis2/services/provisioning/"/>*
    *<tran:user-header name="reResolvedRegion" value="MB"/>*
    <http:Content-Type>application/soap+xml; charset=utf-8</http:Content-Type>
    </tran:headers>
    <tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
    </con:request>
    </con:transport>
    <con:security>
    <con:doOutboundWss>false</con:doOutboundWss>
    </con:security>
    </con:endpoint>>
    And here is the inbound xml getting printed inside the called proxy service
    inbound="<con:endpoint name="ProxyService$userProvisioning$proxyService$LocalSoapListener" xmlns:con="http://www.bea.com/wli/sb/context">
    <con:service/>
    <con:transport>
    <con:mode>request-response</con:mode>
    <con:qualityOfService>best-effort</con:qualityOfService>
    <con:request xsi:type="loc:LocalRequestMetaData" xmlns:loc="http://www.bea.com/wli/sb/transports/local" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="loc:LocalRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports"/>
    <tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
    </con:request>
    <con:response xsi:type="loc:LocalResponseMetaData" xmlns:loc="http://www.bea.com/wli/sb/transports/local" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="loc:LocalResponseHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports"/>
    <tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">0</tran:response-code>
    </con:response>
    </con:transport>
    <con:security>
    <con:transportClient>
    <con:username>&lt;anonymous></con:username>
    </con:transportClient>
    </con:security>
    </con:endpoint>"

    Hi,
    We are using OSB 11g for sending message to external client.
    we are setting Headers "JMSType" in set Transport Header. but Client is not able to recieve the JMSType header at there side.
    we have read many forums for the same and turned on
    Pass all Headers through Pipeline
    Get All Headers
    then I put one publish action and keep my "Set Transport Header" inside that. still client is not able to find the same
    In out outbound request we can see the header as following.
    $outbound = <con:endpoint name="BusinessService$Notification$BusinessService$external$BUSINESSSERVICE:con="http://www.bea.com/wli/sb/context">
    <con:service/>
    <con:transport>
    <con:uri></con:uri>
    <con:mode>request</con:mode>
    <con:qualityOfService>exactly-once</con:qualityOfService>
    <con:request xsi:type="http:HttpRequestMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
    <tran:user-header name="JMSType" value="XXXXXXX">
    <http:Content-Type>text/plain; charset=utf-8</http:Content-Type>
    </tran:headers>
    <tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
    </con:request>
    <con:response xsi:type="http:HttpResponseMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="http:HttpResponseHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
    <tran:user-header name="content-description" value="SOAP"/>
    <tran:user-header name="content-disposition" value="attachment;filename=&quot;[email protected]&quot;"/>
    <tran:user-header name="content-id" value="&lt;[email protected]>"/>
    <http:Cache-Control>proxy-revalidate</http:Cache-Control>
    <http:Connection>Keep-Alive</http:Connection>
    <http:Content-Length>112</http:Content-Length>
    <http:Content-Type>text/xml; charset=utf-8</http:Content-Type>
    <http:Date>Sun, 02 Sep 2012 04:06:43 GMT</http:Date>
    <http:Server>XXXXXXXXXerver>
    <http:Set-Cookie><![CDATA[<cookie-values xmlns="http://www.bea.com/wli/sb/transports/http">
    <value>JSESSIONID=m2RvGs2_Lvk_AZgyVJIv_e2-vSiFOQFi_mIA_SAPULGAKriCp_hbBD8uC0e8pEXt; Version=1; Path=/</value>
    <value>saplb_*=(spspiq_PIQ_00)6487650; Version=1; Path=/</value>
    </cookie-values>]]></http:Set-Cookie>
    </tran:headers>
    <tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">0</tran:response-code>
    <tran:response-message xmlns:tran="http://www.bea.com/wli/sb/transports">OK</tran:response-message>
    <tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
    <http:http-response-code>200</http:http-response-code>
    </con:response>
    </con:transport>
    <con:security>
    <con:doOutboundWss>false</con:doOutboundWss>
    </con:security>
    </con:endpoint>

  • Using relative-URI  in creating the REST based proxy service

    Hi,
    I am facing an issue when i am trying to create REST based proxy. i am looking at the urls given in the forum post Using Business Service that supports XML over HTTP in OSB
    I have created a conditional branch with xpath expression like *./ctx:transport/ctx:request/http:relative-URI/text()*
    and i am copying this value to $inbound as showin in the blog http://blogs.oracle.com/jeffdavies/2009/06/restful_services_with_oracle_s_1.html. But when i typed the uri in browser its saying xml parser error unable to find <.
    Not sure of the reason. If i modify my proxy to use http-method as shown in the blog its working fine and that too only when i copied ./ctx:transport/ctx:request/http:http-metho/text() to $inbound. But when i copied the same to another variable like branchcond, i am getting same parsing error. And Is it that the variable has to be always $inbound?  So what should be the variable name for using relativeURI
    And my uri is going to be like the following, thats why i am planning to create the conditonal branch on relative-uri.
    http:/localhost:8001/proxy/RESTbasedPS/getGreeting?name=23
    http:/localhost:8001/proxy/RESTbasedPS/getFullName?firstName=Some&lastName=Thing
    Any leads in above error will help me.
    Thanks
    Siva

    When i created the Conditonal branch, its asking for two mandatory properties. One is 'selected path' and the other is 'variable'. My scenario i am trying to base my conditional branch based on relative uri, so i have given './ctx:transport/ctx:request/http:relative-URI/text()' for 'selected path' variable and giving the value 'inbound' for 'variable' property of conditional branch.
    i was trying to do this in similar fashion as given in the blog http://blogs.oracle.com/jeffdavies/2009/06/restful_services_with_oracle_s_1.html, only thing is that i am using http:relative-URI rather http:http-method as shown in the blog.
    I am geting the following error in exact:
    XML Parsing Error: no element found
    Location: http://localhost:7001/proxy/RESTBasedPS/getGreeting?name=siva
    Line Number 1, Column 1:
    Please let me know if i am missing something or doing wrong with inbound variable.
    Thanks
    Siva

  • I have a Build Array function within a case structure. This array gets populated properly but I am unable to pass this array out of the case structure.

    I'm including a .png file that shows how I've coded this array.  This is part of a subvi.  Do arrays/loops behave differently in subvi's than in vi's?
    Attachments:
    arrays and loops.png ‏29 KB

    Can you attach your actual VI?
    I think there are a few more problem areas, for example:
    Why are you reading "time Stamp 3" from a value property node with each iteration of the loop? Due to the speed of the loop is very unlikely that that value changes between iterations (and if it would, it would give unpredictable results!). Thus you should read that value once before the loop or better just wire from the actual terminal. Property nodes force synchronous execution and are several orders of magnitude slower than any other method of data transfer.
    LabVIEW Champion . Do more with less code and in less time .

  • I bought season pass for almost human and the idiots at customer service tell me i did not due the purchase history which i already stated in my original complaint  my money was taken but no go  what the heck going on this not very helpful

    as you can see i presssed the  button yet purchase historty says different what happened ? customer service not helpful  so far and not grasping the problem i am complaining thinking i did not pay for season when obvisouly i pressed the button so what heck ?
    Message was edited by: sabbagh33

    It's now nearing the end of April, and 'Almost Human' is not due for airing in the UK until Tues 6th May 2014, and not available for purchase until after the UK airing.  I rather suspect you have your iTunes account set-up as 'US' where the season pass has been available, and you purchased it from there (as is displayed in your screenshot - 'TV-14' is the US channel).  You cannot 'cheat' the system that way, and get early 'viewings' hoping to get away with it.  You have nothing to complain about.
    If you had purchased iTunes would have despatched you a recipt and that should be in your mail history.
    I have well over 200 movies, about 300 TV episodes, and many thousands of music tracks on iTunes, the iTunes help desk - when I have needed them less than 5 times in about 8 years have been very helpful.  They do not deserve to be 'rounded' upon with criticism like this.
    Always be honest, always be fair

  • Unable access the server from administration services

    Hi Experts,
    Can any one please help on the following issue:
    I have installed the 9.3.1.3 Hyperion administration services on my PC and when I tried to connect to the server I am getting the following error message:
    Could not connect to administration server, client and server are different versions
    Server version is 9.3.1 and client version is 9.3.1.3.
    I tried to download the 9.3.1 administration services from www.edelivery.oracle.com but I couldn't find the 9.3.1 version.
    Are there any other sites available to download the 9.3.1 administration services.
    Also, Can we able to connect to the Linux Essbase server from Windows administration services?
    Thanks in Advance,
    Ram

    Atul:
    Are you connecting to the essbase at remorte server location?
    Looks like Essbase a the C-NOIA131 is not started or not accepting connection request?
    check wheather it is started?
    if it is started; use IP Address and connect, sometimes server name might not work if DNS at u r network is down or not Defined properly?
    I would do a Telnet from the box in which i am trying to fire the connection and connect to the port 1423 which essbase uses to see if u have any firewall issues
    This might be a problem where essbase is not started..in my experience.. let me know u r findings...
    Thanks,
    Sriram

  • Unable to update Company Sales Information of the Account using Web service

    Hi,
    I am trying to update the Company Sales Information(Party Number, Customer number etc) of a existing Account through web Service 2.0 in dot net, but the values for
    Company Sales Information remains unchanged. Also , when I am trying to insert a new Account through a web service, these fields remains blank.
    I am not getting why this is happening.
    Please help me if anyone knows about it.

    Were you able to update other account information beside sales information? I'm doing the same - update sales information on the account - without any issues. Make sure to set external system id so that system can find the account that needs to be updated. Otherwise, I was getting "can't find the reference information" error. In my case I'm providing,
    AccountData.setExternalSystemId("xxxxx");

  • Extracting the data from web service response

    Hi,
    I called a web service and in response got an XML data, now I have to extract the values and store in table
    My steps,
    1,call web service
    2,stored response in CLOB column
    3,Then used following query
    SELECT loc.*
    FROM my_xml PO,
    XMLTable(XMLNAMESPACES(
    'urn:schemas-microsoft-com:xml-diffgram-v1' as "diffgr"
    ,'http://api.***.com/' as "ns0"
    ,'/ns0:DataSet/diffgr:diffgram/NewDataSet/OptOutAll'
    PASSING xmltype.createxml(PO.xml_data)
    COLUMNS
    "Email" CHAR(100) PATH 'Email',
    "Reason" CHAR(150) PATH 'Reason'
    ) As loc
    WHERE ROWNUM <= 10;
    I have written it by using this example
    But it is not working, dont know why
    /Zab

    If I use the following sample XML (stored in XMLType table TMP_XML) :
    <?xml version="1.0" encoding="UTF-8"?>
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <soap:Body>
        <GetOptOutAllResponse xmlns="http://api.***.com/">
          <GetOptOutAllResult>
            <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas- microsoft-com:xml-msdata">
              <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
                <xs:complexType>
                  <xs:choice minOccurs="0" maxOccurs="unbounded">
                    <xs:element name="OptOutAll">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="OptOutTime" type="xs:dateTime" minOccurs="0"/>
                          <xs:element name="Email" type="xs:string" minOccurs="0"/>
                          <xs:element name="MailingList" type="xs:string" minOccurs="0"/>
                          <xs:element name="SendQueueId" type="xs:int" minOccurs="0"/>
                          <xs:element name="Reason" type="xs:string" minOccurs="0"/>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:choice>
                </xs:complexType>
              </xs:element>
            </xs:schema>
            <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
              <NewDataSet xmlns="">
                <OptOutAll diffgr:id="OptOutAll1" msdata:rowOrder="0" diffgr:hasChanges="inserted">
                  <OptOutTime>2012-05-09T22:40:00+02:00</OptOutTime>
                  <MailingList>information</MailingList>
                  <SendQueueId>111111</SendQueueId>
                  <Reason>Subscriber confirmed</Reason>
                </OptOutAll>
                <OptOutAll diffgr:id="OptOutAll2" msdata:rowOrder="1" diffgr:hasChanges="inserted">
                  <OptOutTime>2012-06-07T22:30:00+02:00</OptOutTime>
                  <MailingList>information</MailingList>
                  <SendQueueId>111111</SendQueueId>
                  <Reason>Subscriber confirmed</Reason>
                </OptOutAll>
                <OptOutAll diffgr:id="OptOutAll3" msdata:rowOrder="2" diffgr:hasChanges="inserted">
                  <OptOutTime>2012-06-14T00:20:00+02:00</OptOutTime>
                  <MailingList>information</MailingList>
                  <SendQueueId>111111</SendQueueId>
                  <Reason>Subscriber confirmed</Reason>
                </OptOutAll>
                <OptOutAll diffgr:id="OptOutAll4" msdata:rowOrder="3" diffgr:hasChanges="inserted">
                  <OptOutTime>2012-06-19T20:50:00+02:00</OptOutTime>
                  <MailingList>information</MailingList>
                  <SendQueueId>111111</SendQueueId>
                  <Reason>Subscriber confirmed</Reason>
                </OptOutAll>
              </NewDataSet>
            </diffgr:diffgram>
          </GetOptOutAllResult>
        </GetOptOutAllResponse>
      </soap:Body>
    </soap:Envelope>Then I can do :
    SQL> SELECT x.*
      2  FROM tmp_xml t
      3     , XMLTable(
      4         XMLNamespaces(
      5           'http://www.w3.org/2003/05/soap-envelope' as "soap"
      6         , 'urn:schemas-microsoft-com:xml-diffgram-v1' as "diffgr"
      7         , 'http://api.***.com/' as "ns0"
      8         )
      9       , '/soap:Envelope/soap:Body/ns0:GetOptOutAllResponse/ns0:GetOptOutAllResult/diffgr:diffgram/NewDataSet/OptOutAll'
    10         PASSING t.object_value
    11         COLUMNS OptOutTime  TIMESTAMP WITH TIME ZONE PATH 'OptOutTime'
    12               , MailingList VARCHAR2(100)            PATH 'MailingList'
    13               , Reason      VARCHAR2(150)            PATH 'Reason'
    14       ) x
    15  ;
    OPTOUTTIME                          MAILINGLIST                    REASON
    09/05/12 22:40:00,000000 +02:00     information                    Subscriber confirmed
    07/06/12 22:30:00,000000 +02:00     information                    Subscriber confirmed
    14/06/12 00:20:00,000000 +02:00     information                    Subscriber confirmed
    19/06/12 20:50:00,000000 +02:00     information                    Subscriber confirmed
    Are you getting anything different?

  • Re: Extracting the data from web service response

    Hi Odie,
    I am getting an runtime  error when I  ran this  procedure. Also noticed that,   if I  remove all prefix from p_path variable,  I do  not get any runtime error but the result are blanks.
    Would apprecaite, any  help.
    ===============================================
    ORA-19112: error raised during evaluation:
    XVM-01081: [XPST0081] Invalid prefix
    1   /soap:Envelope/soap:Body/ns0:GetOptOutAllResponse/ns0:GetOptOutAllResult/di
    -   ^
    ============================================
    create or replace    procedure temp34 as
    p_path varchar2(400)  := '/soap:Envelope/soap:Body/ns0:GetOptOutAllResponse/ns0:GetOptOutAllResult/diffgr:diffgram/NewDataSet/OptOutAll';
    begin
    for r in (
    SELECT x.*
         FROM tmp_xml t
            , XMLTable(
                XMLNamespaces(
                  'http://www.w3.org/2003/05/soap-envelope' as "soap"
                , 'urn:schemas-microsoft-com:xml-diffgram-v1' as "diffgr"
                , 'http://api.***.com/' as "ns0"
              , p_path
               PASSING t.XML
               COLUMNS OptOutTime  TIMESTAMP WITH TIME ZONE PATH 'OptOutTime'
                   , MailingList VARCHAR2(100)            PATH 'MailingList'
                    , Reason      VARCHAR2(150)            PATH 'Reason'
            ) x
             loop
             dbms_output.put_line(r.MailingList );
             end loop;
    end;
    Thanking you, in advance.

    Hi,
    Any good reasons to use a dynamic XQuery expression via a PL/SQL variable?
    It's not a good idea for two reasons :
    It doesn't work with the XMLNamespaces clause, it is simply ignored.
    It disables parse-time optimization, so no streaming evaluation even tough you're using a binary xmltype source.
    Use a static XQuery string as shown in the beginning of this thread.
    Or, if you really need a variable expression you'll have to declare the namespace mappings in it as well :
    'declare namespace soap = "http://www.w3.org/2003/05/soap-envelope";
    declare namespace diffgr = "urn:schemas-microsoft-com:xml-diffgram-v1";
    declare namespace ns0 = "http://api.***.com/";
    /soap:Envelope/soap:Body/ns0:GetOptOutAllResponse/ns0:GetOptOutAllResult/diffgr:diffgram/NewDataSet/OptOutAll'
    but again that usage is discouraged.
    Also note that declaring namespaces that way only apply to the scope of the main XQuery expression, so if there are any namespace-qualified PATH expressions in the COLUMNS clause, it won't work either.

Maybe you are looking for

  • Fast refresh of "materialized view with joins only"

    Hi, My Requirement: I need to create a materialized view joining two tables. Table1 -> Does not have primary key Table2 -> Has a primary key I need to refesh the mat view only when DML commands are done on Table1 alone. And it will be better if i hav

  • Box and Size stmt in sapscript

    Hi all a very basic question can anybody plz tell me whatz the difference between box and size stmt in sapscript Thanks in advance

  • Turn off HTML e-mail

    HTML e-mail is all very well but, when abroad, it would be much more convenient (not to say cheaper) if my iPhone only received the text content of the e-mail (no formatting, no images, nothing except a link to the download if required). Is it possib

  • Two SWFs on a page - one in fullscreen, dropping frames in OSX

    Hi The issue we're facing is choppy playback of a fullscreen video only in OSX while there is a second SWF underneath it on the HTML page (fullscreen mode in the SWF on top, while the other SWF in the background sits idle). We have one video player i

  • Mac Pro not correctly updating?

    Can anyone help me? I am working on a Mac Pro 5,1 (OSX 10.6.8). This computer will not update correctly. If I try to install multiple updates, it tells me the computer must restart in order to install the updates. So I click on restart, and it actual