ALSB XQuery conflict

I got the following conflict in XQuery while importing the project into new Env.(from alsb2.6 to alsb 3.0)
An error occurred updating the resource:
line 25, column 16: {bea-err}TYPE001: "{http://www.w3.org/2001/XMLSchema}anyType": type not found.
Could any body tell me how to resolve this conflict....
find the part code below...
declare variable $TSO_DATADoc as element(ns0:TSO_DATA) external;
declare namespace functx = "http://www.functx.com";
declare function functx:wrap-values-in-elements
( $values as xs:anyType* ,
$elementName as xs:QName ) as element()* {
for $value in $values
return element {$elementName} {$value}
let $name:=""
let $value:=""
return
Edited by: dbr6 on Dec 14, 2009 11:51 AM
Edited by: dbr6 on Dec 28, 2009 12:36 PM

Hi!
Thanks for the fast reply.
We are using the Eclipse based BEA Workshop Studio , version 1.1 (build: 10900602)
Regards
Afram
Edited by: user12665375 on 2010-feb-23 13:18

Similar Messages

  • ALSB XQuery resource cannot be found

    Hi!
    I have a problem, that for no apparent reason, my ALSB environment "crash".
    All of a sudden the Xquery resource cannot be found. You cannot export jar from resource and
    you cant do a XT transformation, because of the resources cannot be found. The typed show empty.
    This have occurred before, and I solved it by deleting my workspace and starting a new from scratch. But
    i feel that this is not the right way to solve it every time it appears. I have tried doing a clean, build and everything.
    Have some one ever got this problem, or have I missed something?
    Using Eclipse based BEA Workshop Studio version: 1.1 (build: 1090602)
    Edited by: user12665375 on 2010-feb-23 13:21

    Hi!
    Thanks for the fast reply.
    We are using the Eclipse based BEA Workshop Studio , version 1.1 (build: 10900602)
    Regards
    Afram
    Edited by: user12665375 on 2010-feb-23 13:18

  • OSB/ALSB: xquery transformation

    Hi
    I have xml of the form:
    namespaceA="www.school.com/school"
    namespaceB="www.teacher.com/teacher"
    <namespaceA:School>
    <namespaceA:Class>10th</namespaceA:Class>
    <namespaceB:Teacher>John</namespaceB:Teacher>
    </namespaceA:School>
    I want to extract <Class> element, so in xquery i simply write expression and assign it to variable:
    $body/namespaceA:School/namespaceA:Class so expected outcome is this : *<namespaceA:Class xmlns:namespaceA="www.school.com/school">10th</namespaceA:Class>*
    However I get the following:
    <namespaceA:Class xmlns:namespaceA="www.school.com/school" xmlns:namespaceB="www.teacher.com/teacher">10th</namespaceA:Class>
    Now clearly I do not need namespace B declaration in the obtained sub-element <Class>.
    How to stop inheriting these namespaces? I used expression : $body/namespaceA:School/@* , $body/namespaceA:School/node() But in vain.
    Any ideas?

    if you can ignore it, just ignore it. If it really irritates you, here in OSB How to remove a namespace that is located into the <soapenv:Body> you have a few solutions - I haven't tried them so it's up to you to experiment.

  • OSB XSLT testing issue

    I am using the ALSB XQuery/XPath/XSLT Expression Testing functionality of the service bus console. However when I click execute I just get
    "Error executing the transformation: java.lang.NullPointerException" and no details. I looked at the log files at
    <domain_home>/servers/AdminServer/logs/ but I don't see any details.
    Any hints about what may be going wrong here ?

    Hi there, before going to the workmanager, can anyone explain about the socket listner? It seems like my socket listner is fully occupied when load comming in.
    Basically it seems like not releasing the socket. Can i know by defult how the socket works in WLS? I am lost, because from my understanding, each socket is base on one connection means when it reach the JMS it will ends the process and close the listner. Then when JMS proxy picking the message in the queue will perform one by one means consume the socket one by one.
    For e.g:
    1. JMS proxy pick up message>"one socket consumed">send to business service > wait for respone > respone return >"socket close"
    2. JMS proxy pick up message>"one socket consumed">send to business service > wait for respone > respone return >"socket close"
    so each time will used only one socket per transaction am i rite?
    and i received below message from the domain log
    ####<Jul 20, 2010 3:50:25 PM SGT> <Warning> <Socket> <selbgixb50ut002> <CGISOSB_MS1> <[ACTIVE] ExecuteThread: '21' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1279612225183> <BEA-000449> <Closing socket as no data read from it during the configured idle timeout of 5 secs>
    ####<Jul 20, 2010 3:50:25 PM SGT> <Warning> <Socket> <selbgixb50ut002> <CGISOSB_MS1> <[ACTIVE] ExecuteThread: '21' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1279612225183> <BEA-000449> <Closing socket as no data read from it during the configured idle timeout of 5 secs>
    I am really lost. Recommanded setting for basic Ascync process needed, and i am using the default connection factory, will this cause the problem?

  • How to map xml to a fixed length string?

    Hi All,
    I have a requirement to map request xml to a string of fixed length and format:
    For eg,
    Source:
    <Person>
    <Name>George</Name>
    <Age>21</Age>
    </Person>
    Target:
    String of format
    Name : 8 chars
    Age : 2chars.
    so the required mapping should result in
    "George 21".
    Note: 2 blanks after "George" to allow for 8 characters. Is this kind of mapping possible using ALSB xquery? I have tried to create a MFL representation for the string , and used it in the xquery as the targer but it is generating
    "George21".Only data present in source is getting mapped :(

    My advice would be to use MFL transformation for that.
    Documentation about MFL can be found at edocs: http://edocs.bea.com/alsb/docs26/fbhelp/index.html
    Find tips and tricks about ALSB at my blog: http://dev2dev.bea.com/blog/jordinho/

  • [ALSB 3.0] help help about xquery transformation

    Hi all,
    I should transform a xml doc from
    <val_date>20081004</val_date>
    <par>
    <key>rpp</key>
    <value>10</value>
    </par>
    <par>
    <key>curry</key>
    <value>CHF</value>
    </par>
    to
    <val_date>20081004</val_date>
    <par>
    <key>rpp</key>
    <value>10</value>
    </par>
    <par>
    <key>curry</key>
    <value transcoder="CURRENCY">CHF</value>
    </par>
    I'm using WorkspaceStudio but I've some troubles in my xquery transformation.
    I tried as below:
    <ns1:val_date>{ data($dummyProviderEvent/ns0:val_date) }</ns1:val_date>
    for $par in $dummyProviderEvent/ns0:par
    return
    <ns1:par>
    <ns1:key>{ data($par/ns0:key) }</ns1:key>
    if ($par/ns0:key="curry") then <ns1:value transcoder="CURR">{ data($par/ns0:value) }</ns1:value>
    else <ns1:value>{ data($par/ns0:value) }</ns1:value>
    </ns1:par>
    </ns1:dummyEvent>
    but is not working:
    i) WorkspaceStudio raises a warning at 'else' line with message "XML element does not match the target schema"
    ii) testing the transformation it seems that if condition is always true
    Could you help me to find out the correct solution ?
    Regards
    ferp

    I know there were some changes to the packaging of the public API in 3.0. You may want to be sure you include all the necessary jar in your classpath. I think there is another post in the forum covering this.
    Gregory Haardt
    ALSB Prg. Manager
    [email protected]

  • Returning CDATA using XQuery in ALSB

    I would like to know how to pass CDATA section using XQuery in ALSB. This is required as the client application wants certain data with XML tags as string. I used the following:
    <web:getFlightDetails xmlns:web="http://webservices.ods.mwcoe.united.com">
    <web:getFlightDetailsResponse>
    <XMLBODY>
    { fn:concat("<![CDATA[" ),  " ") }
    { $body/FML32/* }
    { fn:concat(("]]>"), " ") }
    </XMLBODY>
    </web:getFlightDetailsResponse>
    </web:getFlightDetails>
    But I get the following response:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Header/>
    <soapenv:Body>
    <web:getFlightDetails xmlns:web="http://webservices.ods.mwcoe.united.com">
    <web:getFlightDetailsResponse>
    <XMLBODY>
    " & l t ; " ![CDATA[
    <STATDES>N/A</STATDES>
    <BAGFIN>-1</BAGFIN>
    <INBLK>2007-10-23 07:33:00</INBLK>
    <FLTDETORIG>SFO</FLTDETORIG>
    ]] "& g t ;"
    </XMLBODY>
    </web:getFlightDetailsResponse>
    </web:getFlightDetails>
    </soapenv:Body>
    </soapenv:Envelope>
    Basically the question is how do I pass < & > and not " & l t ;" and " & g t ;". Please space padding is done on purpose here.
    Thanks,
    Channu Kambalyal
    United Airlines.

    here we get it done using instead of
    { fn:concat("<![CDATA[" ), " ") }
    { $body/node() }
    { fn:concat(("]]>"), " ") }
    this:
    { fn:concat("<![CDATA[" ), $body/node(), "]]>") }
    getting a correct response
    ex:
    <XMLBODY>
    <![CDATA[
    <STATDES>N/A</STATDES>
    ]]>
    </XMLBODY>
    but, if there's any namespace on the variable node, we get all replace by <
    ex:
    <XMLBODY>
    " & l t ; " ![CDATA[
    & l t ; a:STATDES xmlns:a="http://localhost/a">N/A & l t ; /a:STATDES>
    ]] "& g t ;"
    </XMLBODY>
    do anybody have any idea why this happens?

  • ALSB (OSB) xquery support for fn:error

    Hi all,
    I've got a function which performs a check and eventually raise a fn:error
    In my IDE works fine and stop the transformation reporting the error, in Workshop it doesn't and complete the transformation anyway.
    Is there anything to enable? Is it supported? What other options I have?
    Thanks in advance

    Please refer -
    Re: XQuery fn:error function Issue
    Regards,
    Anuj

  • Call an Xquery Resource in ALSB dynamically

    Hi,
    I am using Aqualogic ServiceBus v2.6.
    I have created few xquery resources and want to access them dynamically.
    Is it possible to dynamically access an xquery resource, the way we can dynamically route to a proxy / business service by giving the complete path.
    I'll get the name and path of my xquery from request at run time and will have to select corresponding xquery from many created in a project.

    Thanks for the reply.
    But I think I wasn't clear with my question.
    I want to call an xquery dynamically, not route to a proxy service.
    I have one project with 1 proxy service and many xquery resources. I do not know which xquery is to be used. The selection of xquery is based on request recieved by proxy service. The path of all xqueries is same. I'll get the name of xquery to be used at run time. How can I access this xquery dynamically?
    We have option of selecting an xquery resource by selecting radio button. Can we do this by just giving the path and name at run time?
    E.g. In my project I have 1 proxy service XYZProxyService and many xquery resources say 1.xq, 2.xq ..... N.xq
    I now the path of all these is XYZProxyService/XQueries/
    I'll get the name of xq to be used at run time from request.
    So I can construct the whole path alongwith name XYZProxyService/XQueries/<N>.xq
    But is there a support to select an xq dynamically by giving whole path?

  • Type Conflict

    hi,
    i got below conflict when i am porting alsb project.
    {color:#ff0000}line 25, column 16: {err}XP0051: "{{color}<a href="http://www.w3.org/2001/XMLSchema" class="jive-link-external">{color:#ff0000}http://www.w3.org/2001/XMLSchema</a>{color}{color:#ff0000}}anyType": type must be atomic{color}
    and part Xquery is like this
    <p>
    {color:#3366ff}declare variable $XXXXXDoc as element(ns0:XXXXXX) external;
    {color}{color:#3366ff}declare namespace functx = "{color}<a href="http://www.functx.com/">{color:#3366ff}<a href="http://www.functx.com/" class="jive-link-external">http://www.functx.com/</a>{color}</a>{color:#3366ff}";
    {color}{color:#3366ff}declare function functx:wrap-values-in-elements
    ( $values as xs:anyType* ,
    $elementName as xs:QName ) as element()* {
    for $value in $values
    return element {$elementName} {$value}
    {color}
    </p>
    <p>
    {color:#3366ff}let $name:=""
    let $value:=""
    return
    &lt;ret:xyzadfb....
    {color}
    help how to remove this conflict
    Thanks in advance.
    </p>

    Hi NAC,
    If you always want the user to enter the date in dd/MM/yyyy, you can do the following.
    Goto Local Dictonary -> Simple types in your project and create a type known as "InputDate" (or whatever you feel) of built-in type 'Date'.
    Now specifiy its format in the 'Representation' tab as "dd/MM/yyyy" (case-senstive).
    Now declare a value attribute say "inputdate" in your context with this type and bind the inputfield to this context value attribute.
    This will solve your problem.
    But if you want the user to input date depending on the region he belongs, change the default locale date in Control Panel->Regional and Language Options->Change to English(UK) -> Customize -> Date Tab -> Sort Date Format to dd/MM/yyyy.
    Now clear the cache, delete temporary files and restart the machine. This should solve the problem.
    Regards,
    Shubham

  • Xquery with bind variable in OSB

    Hi,
    I have requirement to read XML file in Xquery as bind variable but it's giving error. I have included this file in OSB proejct but i dont know how to point this out using bind variable. I tried to read file using fn:doc and given file name but it's giving error.
    Any pointer here..
    Thanks

    a few other threads :
    How to use fn:doc() in ALSB
    Re: OSB: How read file xml that is into project OSB
    Caching XML Variable in OSB
    things you need to look at :
    xquery files aren't customizable
    xquery files itself are cached, the fn:foc function will be executed every time again
    so if you don't use the xml for other things, i would just registrate it as xquery file with the xml in it
    or you could use the synchronous file adapter to retrieve the data from the file

  • How to use JMSReplyTo parameter in ALSB

    Hallo all,
    Background: I am sendind an xml message to ALSB via a JMS Queue. I set the JMSReplyTo header parameter to a spcific queue where I want the Service Bus to send the response. I have the following problem:
    I want to perform some conditional processing with ALSB depending on which is the queue I have in the JMSReplyTo parameter but I am not able to access that parameter with ALSB. I am able to access other JMS header parameter (accessing them using the xquery editor) but that parameter is not even present!
    If I save the JMS message I get in the queue I can see that the param is there but set as follow:
    <mes:JMSReplyTo>
    <mes:Destination applicationName="pgw2JmsSysModule" moduleName="" name="pgw2JmsSysModule!pgw2testQueue" serverName="pgw2JmsServer" />
    </mes:JMSReplyTo>
    How am I supposed to use it?
    Thanks,
    Nicola

    Hi
    See http://edocs.bea.com/alsb/docs25/userguide/transport.html#wp1081193

  • The use of ALSB 2.6

    Hi,
    I got some problems when use ALSB 2.6. Could someone help me? Thanks in advance.
    First, I need to configure the authentication and authorization in ALSB. I've read some documents about this, but the documents are too abstract for me, so I can't understand it in a short time.Could someone tell me how to configure it step by step? By the way, I store the users in database.
    Second, I want to ask how to change the return type? For example, in other server there is a web service which return a instance of User(the user has two field, name and password). but I only want to return the user's name, how should I do?
    Third, below is a WSDL file from a webservice
    <definitions name='BeanService' targetNamespace='http://example.com' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://example.com' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
    <types></types>
    <message name='method'>
    <part name='firstName' type='xsd:string'></part>
    <part name='lastName' type='xsd:string'></part>
    </message>
    <message name='methodResponse'>
    <part name='return' type='xsd:string'></part>
    </message>
    <portType name='Service'>
    <operation name='checkName' parameterOrder='firstName lastName'>
    <input message='tns:method'></input>
    <output message='tns:methodResponse'></output>
    </operation>
    </portType>
    <binding name='ServiceBinding' type='tns:Service'>
    <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>
    <operation name='checkName'>
    <soap:operation soapAction=''/>
    <input>
    <soap:body namespace='http://example.com' use='literal'/>
    </input>
    <output>
    <soap:body namespace='http://example.com' use='literal'/>
    </output>
    </operation>
    </binding>
    <service name='ServiceBeanService'>
    <port binding='tns:ServiceBinding' name='ServiceBeanPort'>
    <soap:address location='http://192.168.168.187:8080/service'/>
    </port>
    </service>
    </definitions>
    If I want to validate the client user's name and password, how should I do to get the user name and password?
    Thanks,
    Sean

    Hi Sean,
    I couldn't able to understand ur application completely. I don't know why did you choosed ALSB for this.
    I can suggest u some thing for ur problems.
    For case 1:
    you can use java callout in the message flow for the aunthentication. you can write your own utility class for authentication and using java callout option u can call that utility.
    For case 2:
    you can difine simple bean for the return type. Once u get the return value in the alsb. Using Xquery editior in the ALSB the user name alone can be extractable and u can use for further sequece in the message flow.
    For case 3:
    using your wsdl define proxy service. create your client side GUI. finally u can expose the alsb proxy service's wsdl to the client side.
    regards,
    arun

  • Output XML with a default namespace using XQuery

    I'm having a problem with namespaces in an XQuery within ALSB.
    We receive XML from a file which doesn't have any namespace and have to transform it into a different structure, giving it a default namespace such as below:
    Input XML
    <inputRoot>
         <inputAccountName>Joe Bloggs</inputAccountName>
         <inputAccountNumber>10938393</inputAccountNumber>
    </inputRoot>
    Desired output XML
    <outputRoot xmlns="http://www.example.org/outputSchema">
         <outputAccounts>
              <outputAccountName>Joe Bloggs</outputAccountName>
              <outputAccountNumber>10938393</outputAccountNumber>
         </outputAccounts>
    </outputRoot>
    When I attempt to do this using XQuery mapper tool, I end up with a namespace prefix on the outputRoot. The XQuery and result follows:
    XQuery
    declare namespace xf = "http://tempuri.org/XQueryProject/scratchTransformations/test/";
    declare namespace ns0 = "http://www.example.org/outputSchema";
    declare function xf:test($inputRoot1 as element(inputRoot))
    as element(ns0:outputRoot) {
    <ns0:outputRoot>
    <outputAccounts>
    <outputAccountName>{ data($inputRoot1/inputAccountName) }</outputAccountName>
    <outputAccountNumber>{ data($inputRoot1/inputAccountNumber) }</outputAccountNumber>
    </outputAccounts>
    </ns0:outputRoot>
    declare variable $inputRoot1 as element(inputRoot) external;
    xf:test($inputRoot1)
    Result
    <ns0:outputRoot xmlns:ns0="http://www.example.org/outputSchema">
         <outputAccounts>
              <outputAccountName>inputAccountName_1</outputAccountName>
              <outputAccountNumber>inputAccountNumber_1</outputAccountNumber>
         </outputAccounts>
    </ns0:outputRoot>
    How can I write the XQuery in such a way thay the namespace prefix isn't output? I've tried many different methods with no success. I can't declare a default element namespace because my input element doesn't have a namespace
    Thanks in advance

    I spoke too soon, it didn't work quite as perfectly as I'd thought :-) It turns out our client can't handle the xml with the namespace prefix but we've worked out the solution to return XML in the format we originally needed.
    Example below:
    XQuery
    declare namespace xf = "http://tempuri.org/XQueryProject/scratchTransformations/test/";
    declare default element namespace "http://www.example.org/outputSchema";
    declare namespace ns1 = ""
    declare function xf:test($inputRoot1 as element(ns1:inputRoot))
    as element(outputRoot) {
    <outputRoot>
    <outputAccounts>
    <outputAccountName>{ data($inputRoot1/inputAccountName) }</outputAccountName>
    <outputAccountNumber>{ data($inputRoot1/inputAccountNumber) }</outputAccountNumber>
    </outputAccounts>
    </outputRoot>
    declare variable $inputRoot1 as element(inputRoot) external;
    xf:test($inputRoot1)

  • Urgent - XQuery ERROR in Aqualogic Console

    Hello everybody!
    I am getting the following error in my Xquey in ALSB console.
    Could you plase help me?
    An error occurred creating the resource:
    An error occurred compiling the XQuery resource: line 6, column 26: {err}XQ0046: "http://www.tibco.com/schemas/BW/eAI/Shared Resouces/Schema Definition/PRT/Schema.xsd": illegal URI.
    Many Thanks!

    This error could be due to the spaces in the schema file
    Shared Resources
    Schema Definition
    Do not include preceding or embedded spaces in schema file and folder names, give it a try
    Thanks
    Ashok
    Edited by mashokku at 03/28/2008 4:37 PM

Maybe you are looking for

  • How to Disable or Replace SSD Drive on HP 700-330qe

    Help for My 5-Month-Old HP! This is Killing Me! I bought an HP 700-330qe in 2014 from Amazon, and just started getting SMART hard drive errors from Windows whenever my computer restarts, telling me that hard disk failure is imminent. It also tells me

  • Pages - Background Color in Full Screen Mode

    I love Pages. I use it every day. It has amazing functionality. That said, one of the updates a while back has me scratching my head. I have two questions about full screen mode: 1. What happened to the all black background in full screen mode? 2. Is

  • Vector and Jtree 4Duke

    hi i am having poblem with my jtree as i am not able to show the object in my vector as a different node {each object is node of my tree} unfortunately they all appear flat in the root, and in sequence{as one node} ?? i have done everything but still

  • IPad log on does not work

    Password and password reset do not work on iPad.  Can reset at website but not from Reader App

  • Terp10 experience at Kelley School of Business, Indiana University

    The TERP10 certification was held at the Kelley School of Business, Indiana University on Friday, 29th of May 2009. The associated boot-camp was conducted in the days preceding the certification. The class achieved a 100% pass rate. I attempt to shar