How to transform OSB response element

Hi
I have an OSB response document as follows
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
<env:Header/>
<env:Body>
<uwd:getPersonCourseResponse xmlns:uwd="http://eadf.ites.ayd.edu.au/data">
<uwd:Response>
<uwd:PersonID>2113446</uwd:PersonID>
<uwd:Terms>
<uwd:Term>
<uwd:InstitutionCode>UN</uwd:InstitutionCode>
<uwd:TermCode>5107</uwd:TermCode>
<uwd:AcademicYear>2010</uwd:AcademicYear>
<uwd:TermName>Semester 2 2010</uwd:TermName>
<uwd:CurrentTerm>true</uwd:CurrentTerm>
<uwd:Courses>
<uwd:Course>
<uwd:CourseCode>BIOT3621</uwd:CourseCode>
<uwd:CourseTitle>Biotechnology B (Advanced)</uwd:CourseTitle>
<uwd:RelationshipType>Learning</uwd:RelationshipType>
<uwd:Applications>
<uwd:Application>
<uwd:ApplicationCode>LECTOPIA</uwd:ApplicationCode>
<uwd:ApplicationTitle>Lectopia</uwd:ApplicationTitle>
<uwd:Modules>
<uwd:Module>
<uwd:ModuleCode>13</uwd:ModuleCode>
<uwd:ModuleType>Lectopia</uwd:ModuleType>
<uwd:ModuleTitle>BIOT3021 Biotechnology B</uwd:ModuleTitle>
*<uwd:ModuleURL>https://lectopia.telt.test.ayd.edu.au/lectopia/lectopia.lasso?ut=13&amp </uwd:ModuleURL>*
<uwd:Contents>
<uwd:Content>
<uwd:ContentCode>86389</uwd:ContentCode>
What I want to do is that I want delete the *&amp* from *<uwd:ModuleURL>https://lectopia.telt.test.ayd.edu.au/lectopia/lectopia.lasso?ut=13&amp </uwd:ModuleURL>* and send only *<uwd:ModuleURL>https://lectopia.telt.test.ayd.edu.au/lectopia /lectopia.lasso?ut=13</uwd:ModuleURL>*
as part of the response document. how could I do this in OSB? would I be able to make use of any XQuery functions?
Regards
Vick
Edited by: 807485 on Dec 9, 2010 6:56 PM

The problem is with the test data.. You cant have '&amp' as a content of xml node , instead you should have &-a-m-p-; ( - is used to display it here , should be removed)
If you want &amp to be sent as such you need to wrap it in a CDATA as below
<uwd:ModuleURL><![CDATA[https://lectopia.telt.test.ayd.edu.au/lectopia/lectopia.lasso?ut=13&amp]]></uwd:ModuleURL>
Then you can use replace as
replace(data($body/data:getPersonCourseResponse/data:Response/data:Terms/data:Term/data:Courses/data:Course/data:Applications/data:Application/data:Modules/data:Module/data:ModuleURL),'&-a-m-p;amp','')
&-a-m-p; : remove '-' s

Similar Messages

  • How to include a response element in the ESB database adapter.

    hi,
    i am using the dbadapter to insert the data into the table successfully.
    The problem is when i am using a db adapter it doesnot include a response element in its wsdl.I want to send a response to the client as and when the data got inserted from the dbadapter for that transaction.
    i tried using the pl/sql procedure with a out parameter which returns the response but the problem is the pl/sql is called by adapter only once though i am using for each constructor.
    i tried to modify the xsd generated by the dbadapter by including the response element,but the xsd is not getting parsed and throwing error.
    how to overcome this problem and send a immediate response to the client as and when the adapter inserts the data into oracle?
    thanks in advance.

    Although not the cleanest solution, but can't you create another routing service which defines a request (equal to the request element of the original routing service) and reply element (defining a single element called success or something).
    Then have this new routing service invoke your original routing service which invokes the database adapter. Now define a XSLT map for the reply of the new routing service and put an XSL text there with the value "success" or something?
    So:
    Routing_service_new --> Routing_service_original --> database_adapter
    Regards, Ronald

  • How To transform to anyType element in 10g?

    HI,
    How to map to anyType element in Jdeveloper 10g in transform activity? Is it supported?
    I think in 11g, we can use copy-of construct.
    What is the alternative in 10g?
    Thanks
    Manish

    Hi,
    By using copy-of xslt construct again input element structure is getting copied into the target mapper file, by using value-of xsl:construct just the value is getting assigned. Can you please elaborate on how to use this xsd:anyType elements in assign and tranform activities, overall how to use these elements in 10g, while implementing the canonical model.
    ex:
    xsl file: by using value-of
    <xsl:template match="/">
    <ns1:abstractRef>
    <ns1:amount>
    <xsl:value-of select="/ns1:BPELProcess1ProcessRequest/ns1:input"/>
    </ns1:amount>
    </ns1:abstractRef>
    </xsl:template>
    Result:
    <abstract1>
    -<abstractRef xmlns:ns1="http://xmlns.oracle.com/BPELProcess1" xmlns="http://sample/test">
    <ns1:amount>6556</ns1:amount>
    </abstractRef>
    </abstract1>
    Here amount is of type xsd;anyType which is present in the abstract complexType.
    xsl file: by using copy-of:
    <xsl:template match="/">
    <ns1:abstractRef>
    <ns1:amount>
    <xsl:copy-of select="/ns1:BPELProcess1ProcessRequest/ns1:input"/>
    </ns1:amount>
    </ns1:abstractRef>
    </xsl:template>
    Result:
    <abstract1>
    -<abstractRef xmlns:ns1="http://xmlns.oracle.com/BPELProcess1" xmlns="http://sample/test">
    <ns1:amount>
    <ns1:input>6556</ns1:input>
    </ns1:amount>
    </abstractRef>
    </abstract1>
    and while using it on assign activity, it is not assigning the input value to the xsd:anyType element, please provide an example on how to do this activity along with tranform.

  • How can an OSB response be synchronized?

    Hello experts,
    I have a problem with synchronizing an OSB response.The scenario is as follows: I make a request to OSB which in turn, after processing the request replies with an answer.But the problem is what happens if the same scenario is executed by multiple users, in the way that i cannot match the responses with the requests.
    Can a request be matched in some way with it's response in multiple user(multithreaded) environment?
    What needs to be synchronized there?
    I user 11g R2.
    Thanks in advance and best regards!
    Carol

    Hi Carol,
    You may be looking for something like this...
    http://docs.oracle.com/cd/E23943_01/dev.1111/e15866/jms.htm#OSBDV1051
    Cheers,
    Vlad

  • How to transform xsd:anyType in wsdl to some element in target

    Hi,
    My current wsdl has anyType element. I tried to transform the response of webservice to some other schema. But JDeveloper says it doesn't support anyType mapping in this version.
    I am using latest version of JDeveloper. Please suggest.

    Hi.
    I think you'll have to do the transformation manually.
    you can edit your xsl source and add your dynamic xml xpath to your static anyType xpath, for example:
    ns1:myAnyTypeXPath/ns2:myDynamicXPathRoot/ns2:myDinamicXPathElement/.....
    Once you do this, you won't be able to view the xsl transform graphically in JDev anymore, but it should work anyway.
    Regards
    Denis

  • How to completely delete Photoshop Elements from my computer??

    Hi
    I am trying to completely remove Photoshop Elements from my computer.   So far, I have failed in my attempts to do this.   The reason I'm doing this is b/c for some reason that I can't fathom, the folders in My Pictures -- the folders named by shot date -- contain random duplicates.When this happens, the file names folow the convention of DSC_0222 and DSC_0222-1. Exactly the same file size and metadata.  In some folders, every picture is duplicated. In other folders, only selected pitcures within the folder are duplicated.   I can't figure out how they got there -- e.g. it doesn't seem to bear any connection to the photos I've edited, which was one theory I had for a while.   Is Elements responsible? Or is this some sort of bug in the download process from the camera (I have a Nikon D40).  Anyway, I've given up on trying to sovle this problem and decided I would go back to the beginning and reload everything from my camera.   So, my real question here is about how to completely uninstall Elements.
    Here's what I did:    I uninstalled Photoshop Elements through the Add/remove programs utility.  I got no errors during the uninstall process.   Then I completely deleted the My Pictures directory (don't worry -- I have it backed up in multiple places!!).   So, at this point there are *no* pictures on my computer at all.    I reinstall Elements, open it up and -- you guessed it!!! -- the catalog is still there with all the thumbnails of the pictures that i deleted from my hard disk.   Of course, each thumbnail is flagged as "Missing File".
    So, how do I uninstall/reinstall Elements and get it to forget all memory of the previous catalog?   Why is it "remembering" it in this way when the pictures aren't even on the computer anymore?  Isn't this a bug???
    I've been working on this issue for much longer than I care to remember-- if anyone can tell me how to get myself truly back to ground-zero so I can start over I would be deeply grateful.   After upgrading to Elements 9 (from 7) to try to solve this problem I am close to just abandoning Elements entirely.....
    WHile we're at it, if anyone has any idea where the duplicates pictures are coming from and how I prevent that from happening, I'm' all ears!!!!
    Thanks!

    Hi
    Thanks so much for the response.   So, Help/System Info says that the catalog is here:
    Catalog Location: C:\Documents and Settings\All Users\Application Data\Adobe\Elements Organizer\Catalogs\My Catalog\
    but no such file appaers to exist.  In fact, I can only get as far as All Users.   Then there is no directory under that called "Application Data".
    i'm still seeing the thumbnails when I got into Elements tho'....   :-(
    hjr

  • Transformation from multiple elements to multiple instances of same element

    I have to do a transformation where some elements in the source side has to be mapped into multiple instances of an element which has name-value pair elements.
    For example source has
    element1
    element2
    element3
    element4
    Target has
    elementspecgroup (0--infinity cardinality)
    element-name
    element-value
    so the mapping will be multiple instances of elementspecgroup
    elementspecgroup
    ist instance: "element1"
    value of element1
    2nd instance: "element2"
    value of element1
    and so on.
    Can somebody please give me a hint how to achieve it.
    Thanks.

    can you show me source-payload and target-payload?

  • How to transform data received from file adapter

    hi',
    I am reading the data from XML file using file adapter, now I want to write the same contents which I have read from this file to a different/new XML file, the issue is I am unable to perform a transform here, when I use a transform with source element as the output of the file read and target as the input to the new file it is writing an empty file,
    I have checked the audit trail which showsme that the transform is empty.
    please tell me how can I transform the element which I have received from one file to make them as input to next file
    thanks
    Yatan

    thanks James for input, this is my XML and XSD files
    XML file:
    <?xml version="1.0" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://www.example.org"
    targetNamespace="http://www.example.org"
    elementFormDefault="qualified">
    <emp>
    <name>yatan</name>
    <age>28</age>
    </emp>
    </xsd:schema>
    XSD File:
    <?xml version="1.0" encoding="windows-1252" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://www.example.org"
    targetNamespace="http://www.example.org"
    elementFormDefault="qualified">
    <xsd:element name="readfile">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="name" type="xsd:string"/>
    <xsd:element name="empid" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    I am reading XML file, I will describe my process.
    1.) File adapter>read operation ---> receive activity
    2.) Transform > source(receive input variable) <--->target(Invoke input variable)
    3.) File adapter > write operation ---> invoke activity
    Now when I am deploying this process it is sucessfully completing and able to read the file.
    when I check the audit trail receive activity shows XML data but when I check the transform it
    shows empty as below, however the write activity is performed which creates a xml file but no values in the elements
    transform in audit trail
    <Invoke_1_Write_InputVariable>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="readfile">
    -<readfile xmlns:ns0="http://www.example.org" xmlns="http://www.example.org">
    <ns0:name/>
    <ns0:empid/>
    </readfile>
    </part>
    </Invoke_1_Write_InputVariable>
    this is the code for my .bpel file
    <?xml version = "1.0" encoding = "UTF-8" ?>
    <!--
    Oracle JDeveloper BPEL Designer
    Created: Wed May 19 15:04:22 IST 2010
    Author: yatanveer.s
    Purpose: Empty BPEL Process
    -->
    <process name="ReadXMLFile2"
    targetNamespace="http://xmlns.oracle.com/ReadXMLFile2"
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:ns4="http://xmlns.oracle.com/pcbpel/adapter/file/FileReadSync/"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:client="http://xmlns.oracle.com/ReadXMLFile2"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/file/ReadFile/"
    xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
    xmlns:ns3="http://www.example.org"
    xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/file/WriteFile/"
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
    <!--
    PARTNERLINKS
    List of services participating in this BPEL process
    -->
    <partnerLinks>
    <partnerLink myRole="Read_role" name="ReadFile"
    partnerLinkType="ns1:Read_plt"/>
    <partnerLink name="WriteFile" partnerRole="Write_role"
    partnerLinkType="ns2:Write_plt"/>
    </partnerLinks>
    <variables>
    <variable name="Receive_1_Read_InputVariable"
    messageType="ns1:readfile_msg"/>
    <variable name="Invoke_1_Write_InputVariable"
    messageType="ns2:readfile_msg"/>
    </variables>
    <!--
    VARIABLES
    List of messages and XML documents used within this BPEL process
    -->
    <!--
    ORCHESTRATION LOGIC
    Set of activities coordinating the flow of messages across the
    services integrated within this business process
    -->
    <sequence name="main">
    <receive name="Receive_1" partnerLink="ReadFile" portType="ns1:Read_ptt"
    operation="Read" variable="Receive_1_Read_InputVariable"
    createInstance="yes"/>
    <assign name="Transform_1">
    <bpelx:annotation>
    <bpelx:pattern>transformation</bpelx:pattern>
    </bpelx:annotation>
    <copy>
    <from expression="ora:processXSLT('Transformation_3.xsl',bpws:getVariableData('Receive_1_Read_InputVariable','readfile'))"/>
    <to variable="Invoke_1_Write_InputVariable" part="readfile"/>
    </copy>
    </assign>
    <invoke name="Invoke_1" partnerLink="WriteFile" portType="ns2:Write_ptt"
    operation="Write" inputVariable="Invoke_1_Write_InputVariable"/>
    </sequence>
    </process>

  • Consuming Domino web service with JAXB encounters Method Response element

    I am able to consume a Domino R7 (Axis) web service with JAX-WS using Dispatch<SOAPMessage>. When I try using Dispatch<Object> however, JAXB throws an exception because it encounters an unexpected tag.
    The XML from the web service looks like this:
    <Envelope>
        <Body>
            <WebServiceMethodResponse>
                <WebServiceMethodReturn>
                    The meaning of life
                </WebServiceMethodReturn>
            </WebServiceMethodResponse>
        </Body>
    </Envelope>With Dispatch<SOAPMessage>, I can get to the meaning of life quickly using SOAPBody.getElementsByTagName( "WebServiceMethodReturn" ) but with Dispatch<Object>, it appears I must also create a class for the WebServiceMethodResponse element to make JAXB happy. I don't see this happening in other people's examples. Has the Return-element-within-Response-element design been eliminated in pure JAX-WS web services, or is this something that only IBM does?

    In case anyone's search leads them here, I've posted the solution at:
    *[http://www.pby.com/general.nsf/webarticles/dominowebservice01]*
    It is an exhaustive article (not "Hello World"!) that goes through several versions of the web service and client - hopefully explaining all+ pieces of the puzzle:
    ~ web service code,
    ~ WSDLs
    ~ schema
    ~ thoroughly-documented clients that do and do not use JAXB
    ~ ... that use generated artifacts
    ~ ... that customize existing POJOs
    ~ the SOAP messages generated in each direction
    ~ the necessary JAXB annotations
    ~ explanations of how the code works
    ~ explanations of how namespaces affect the code
    ~ on and on and on...
    My constant goal was to write an uncomplicated solution that uses as few artifacts (two) and annotations as possible. The end result is a small, fast JAX-WS 2.0 client that uses JAXB to invoke and consume a secured Domino 7 (1.4.2 JVM + AXIS) web service, using RPC/literal SOAP messages.

  • Cluster OSB : Response contained no data

    Hi Community,
    In my Dev environment, I have a standalone OSB which is connected
    - in one hand, to a SAP, via JcA iway 3rd party connector (SAP RFC protocol).
    - in the other hand, to a custom WS, in another Weblogic.
    I received thousands of flows without any issue.
    Now, in PreProd, I have an OSB in cluster (2 nodes).
    The 2 nodes are connected to SAP thanks to JcA iway 3rd party connector.
    The 2 nodes have the same configuration as the Dev.
    They are connected to custom WS, in another Weblogic.
    When I received flows, about 5~10% went in error :
    [WliSbTransports:381304]Exception in HttpOutboundMessageContext.RetrieveHttpResponseWork.run: java.io.EOFException: Response contained no data
    java.io.EOFException: Response contained no data
      at weblogic.net.http.MessageHeader.isHTTP(MessageHeader.java:227)
      at weblogic.net.http.MessageHeader.parseHeader(MessageHeader.java:148)
      at weblogic.net.http.HttpClient.parseHTTP(HttpClient.java:468)
      at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:401)
      at weblogic.net.http.SOAPHttpURLConnection.getInputStream(SOAPHttpURLConnection.java:37)
      at weblogic.net.http.HttpURLConnection.getResponseCode(HttpURLConnection.java:1005)
      at com.bea.wli.sb.transports.http.HttpOutboundMessageContext.getResponse(HttpOutboundMessageContext.java:679)
      at com.bea.wli.sb.transports.http.wls.HttpOutboundMessageContextWls.access$100(HttpOutboundMessageContextWls.java:26)
      at com.bea.wli.sb.transports.http.wls.HttpOutboundMessageContextWls$RetrieveHttpResponseWork.handleResponse(HttpOutboundMessageContextWls.java:96)
      at weblogic.net.http.AsyncResponseHandler$MuxableSocketHTTPAsyncResponse$RunnableCallback.run(AsyncResponseHandler.java:535)
      at weblogic.work.ContextWrap.run(ContextWrap.java:41)
      at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:531)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:252)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    You have ever see this kind of error ? If so, do you know to fix it ?
    Oracle Service Bus Version: [Oracle Service Bus 11.1 Sun Dec 18 03:49:34 PST 2011]
    Oracle Weblogic Server Version: [WebLogic Server 10.3.6.0 Tue Nov 15 08:52:36 PST 2011]
    Regards

    hello,
    the problem was solved : find the answer in this post
    [http://deepakmodi2006.blogspot.com/2011/05/how-to-fix-javaioeofexception-response.html]
    thnx

  • How to improve the response speed

    Dear Consultants,
    In BI 7.0 EP Environment,  displaying 40000 detailed records wasted  3 minutes, this speed is slowly.
    How to improve the response speed ?
    Please give me some proposals and methods to solve this question.
    Thanks a lot & Best Regards
    Ricky

    Hello,
    3min. is not so bad for 40000 rows of data. Firstly you can analyze where the time spent is it olap or DB. you can use RSRT for analysis.
    Then,
    1. Create aggregates
    2. Use caching and precalculation
    3. check 'Use Selection of Structure Elements' from properties of query in RSRT
    4. Remove unnecessary calculations from query
    5. remove unnecessary rows. try to make them free characteristics.
    6. If there is unused data in infocube, you can archive this data.
    regards,

  • How do I transfer my elements 10 folders to my photoshop CS3?

    How do I transfer my Elements 10 folders to Photoshop CS3?

    Hello and thank you for your rapid response. 
    I did use Bridge and most of my pics did transfer, but several of my folders did not.  Any more suggetions?
    Thank you again,
    kayteedid
    In Christ are hid all the treasures of wisdom and knowledge.
    Colossians 2:3
    "The heart of the wise inclines to the right, but the heart of the fool to the left." Ecclesiastes 10:2 
    Date: Tue, 28 Aug 2012 14:13:30 -0600
    From: [email protected]
    To: [email protected]
    Subject: How do I transfer my elements 10 folders to my photoshop CS3?
    Re: How do I transfer my elements 10 folders to my photoshop CS3? created by 99jon in Photoshop Elements - View the full discussion
    Simply open Bridge.
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4655051#4655051
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4655051#4655051. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Photoshop Elements by email or at Adobe Forums
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How do I maintain responsive scaling on an edge animate animation when I insert it into dreamweaver?

    How do I maintain responsive scaling on an edge animate animation when I insert it into dreamweaver? Please and thank you!

    example.com is a generic http:// address to illustrate the difference between what you gave, file:/// and an actual URL address.  There are no tutorials on that site.  Sorry for the confusion.
    #1 Have you procured your domain name and web hosting yet?  You'll need to do that to publish your pages online.
    #2 When you sign-up for web hosting, the company will send you FTP log-in credentials to your site's web server.    You will enter this info into your DW Site Definition.  Site > New Site >  See screenshots below:
    Under Servers:  Root Directory is whatever your hosting company tells you to use.  This varies by web host.  Some commonly used ones are public_html, www or htdocs.
    After your site definition is set-up, hit the TEST button to confirm it's working.  If it's not connecting, go to More Options.
    Go to the Files Panel (F8).  Use the UP Arrow  to PUT files to remote server.
    Use the DOWN Arrow to GET files from server to your local site folder.
    Post back when you have finished uploading your work to the remote server.
    Nancy O

  • How can I install photoshop elements on a 64 bit windows system?

    How can I install photoshop elements on a 64 bit windows system?

    You just use the appropriate install disk/ download. See this:
    Install Premiere Elements, Photoshop Elements
    Or are you asking about some specific procedures?
    Mylenium

  • How can I use photoshop Elements 8 to make a DVD to play on a regular TV-DVD? [was:DVD-CD-r]

    How can I use photoshop Elements 8 to make a DVD that will show on a regular TV-DVD set-up

    You can't do this in PSE by itself. I'm assuming you have windows, so output your slideshow as a wmv file and then use Premiere Elements to finalize the disc, if you have that. If not, use whatever you do have (if you can burn DVDs, you have software). Even windows dvd maker will do this.

Maybe you are looking for