Escape XML Webservice

Hi All,
I´m consuming a web service service but I´m trouble about some strange characters.
Below there is a little peace of the return. The information below is returned in a String field
<FATURA_PDF TIPO_FATURA="S">
The problem is this "&lt;" sequence . I was expecting "<".
my web method returns is ok!
I created a java client and everything works fine. The problem is when I get this return from ALSB.
Does any one can help me?
Tks.

that´s the real error
& l t ; FATURA_PDF TIPO_FATURA="S">
Please, ignore blank spaces

Similar Messages

  • How to escape XML in BPEL?

    I have a part of a outputmessage in an element HTML of xsd:any. This element contains HTML which i have to transform to escaped XML.
    Therefore i created the following embedded java code.
    String htmlContent = ((oracle.xml.parser.v2.XMLElement)getVariableData("l_GetBericht_Output","reply","/ns5:GetBerichtResponse/ns14:Bericht/ns14:HTML")).getFirstChild().getNodeValue() ;
    htmlContent.replaceAll("<","&lt;") ;
    htmlContent.replaceAll(">","&gt;") ;
    setVariableData("TestHTMLContent",htmlContent);
    Message in l_GetBericht_Output starts with;
    <l_GetBericht_Output>
    <part name="reply">
    <sbtn:GetBerichtResponse>
    <ns3:Bericht>
    <ns3:Onderwerp>sdjasldjalsda</ns3:Onderwerp>
    <ns3:Tekst/>
    <ns3:HTML>
    <HTML>
    <div>
    <p>Data</p>
    <p>
    <p>
    de heer ...
    The result of the selection in BPEL variable TestHTMLContent is empty though.
    Anyone any thoughts ?
    Is there a better way to transform XML to escaped XML ?
    Why is my selection null ?
    Cheers,
    Peter

    Try this.
    xpath query for BPEL,  escaping double quotes
    Should work.
    Thanks,
    Vijay

  • Escape XML.vi bug?

    When I convert an empty 2D array of I32 to XML using Flatten To XML then run it through the Escape XML.vi the ouput string contains NULLs.
    It seems that the tags with no actual value in between causes a NULL (\00) character to be produced between the tags. Is this right or is it a bug?
    Test by sending the constant "" through the "Escape XML.vi" that comes with LabVIEW 6.1.

    Yes, this is a bug. The problem is in xml.llb\EscapeChars.vi. The problem is that when the XML In string is empty the while loop still runs once...which produces 0, the default value for a U8. This \00 is now added in between the val tags. To fix this VI just add a case to the case structure for 0 and pass the array straight through.
    This bug will be fixed in the next version of LV.

  • Escape XML Strings with JDK class

    Hi,
    can anyone tell me how to escape XML-Strings with classes of the JDK?
    When searching I only was pointed to StringEscapeUtils from apache.commons.lang, but we would prefer to use the JDK instead of integrating an external lib.
    Our aim is to escape an XML attribute, so a CDATA is not applicable for us in this case.
    Thanks
    Jan

    I implemented it by myself:
    public static String escapeXmlAttribute(String attributeValue) {
            StringBuffer result = new StringBuffer();
            for (int c = 0; c < attributeValue.length(); ++c) {
                if (attributeValue.charAt(c) == '"') {
                    result.append("&#34;");
                } else if (attributeValue.charAt(c) == '&') {
                    result.append("&#38;");
                } else if (attributeValue.charAt(c) == '<') {
                    result.append("<");
                } else if (attributeValue.charAt(c) == '>') {
                    result.append(">");
                } else {
                    result.append(attributeValue.charAt(c));
            return result.toString();
        }{code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to avoid escaped XML in "Set Workflow Variable" | "By Composing"

    Hi, I have a proplem building an XML document using the action : "Set
    Workflow Variable" | "By Composing" dialog.
    The value of an element on the left pane is a variable in the right pane.
    This variable contains a snippet of XML.
    The problem is that when I print out the newly created document the XML I
    added to it from the variable has been escaped :
    In the example below I created a new xml document called new XML in its
    child_2 element I set its value to the XML String "xml".
    As you can see, the value of child 2 has been escaped. Is there a way to
    turn this feature off ??
    <Jan 30, 2002 10:02:35 AM GMT+10:00> <Info> <WLPI> <<wlpirequest>
    <started>2002-01-30 10:02:35.009</started>
    <requestor>wlpisystem</requestor>
    <templateid>17</templateid>
    <template-name>TEST ESCAPE XML</template-name>
    <templatedefinitionid>17</templatedefinitionid>
    <instanceid>10005</instanceid>
    <actions>
    <activatetask time="2002-01-30 10:02:35.009" taskid="2" name="Task 1"/>
    <setvariable time="2002-01-30 10:02:35.009" variable="xml">
    <StartActivity><businessRef>bus ref</businessRef><orderRef>order
    ref</orderRef><activityId>Activity ID</activityId></StartActivity>
    </setvariable>
    <setvariable time="2002-01-30 10:02:35.011" variable="newXML">
    <Root>
    <Child_1>Child 1 data</Child_1>
    <Child_2><StartActivity><businessRef>bus
    ref</businessRef><orderRef>order
    ref</orderRef><activityId>Activity
    ID</activityId></StartActivity></Child_2>
    </Root>
    </setvariable>
    <marktaskdone time="2002-01-30 10:02:35.011" taskid="2" name="Task 1"/>
    <workflowdone time="2002-01-30 10:02:35.032" name="TEST ESCAPE XML"/>
    </actions>
    <completed>2002-01-30 10:02:35.037</completed>
    </wlpirequest>
    >

    Hi,
    I also have this problem. It seems that a crude way around it, is to use a quick
    fix via calling a business operation that performs string substitution to replace
    the escaped entity references (<) and (>) with "<" ">". I have done this
    and the approach works for me. Just be careful and make sure that the xml string
    your are cleaning up doesn't contain any of these entity reference that you would
    like to keep. Otherwise it will definitily break your xml. I hope you have that
    luxury.
    The easiest way to do is is to write a StringUtil class with a static replace
    function, replace(source, old, new), expose this method as a business operation,
    then call twice to convert your xml string.
    I know this is pretty pathetic, but might help in the meanwhile until BEA provides
    this functionality.
    Lukas
    "Smita Agarwal" <[email protected]> wrote:
    >
    Hi Paul,
    I am getting the exact same problem , have you found a solution for
    it??
    It will be great to know if this problem is solved.
    I am using WLI2.1 sp1 and WLS6.1 sp2, even with these two configuration
    this problem
    is occuring
    cheers,
    Smita
    "Paul Rooney" <[email protected]> wrote:
    Hi, I have a proplem building an XML document using the action : "Set
    Workflow Variable" | "By Composing" dialog.
    The value of an element on the left pane is a variable in the rightpane.
    This variable contains a snippet of XML.
    The problem is that when I print out the newly created document theXML
    I
    added to it from the variable has been escaped :
    In the example below I created a new xml document called new XML inits
    child_2 element I set its value to the XML String "xml".
    As you can see, the value of child 2 has been escaped. Is there a way
    to
    turn this feature off ??
    <Jan 30, 2002 10:02:35 AM GMT+10:00> <Info> <WLPI> <<wlpirequest>
    <started>2002-01-30 10:02:35.009</started>
    <requestor>wlpisystem</requestor>
    <templateid>17</templateid>
    <template-name>TEST ESCAPE XML</template-name>
    <templatedefinitionid>17</templatedefinitionid>
    <instanceid>10005</instanceid>
    <actions>
    <activatetask time="2002-01-30 10:02:35.009" taskid="2" name="Task
    1"/>
    <setvariable time="2002-01-30 10:02:35.009" variable="xml">
    <StartActivity><businessRef>bus ref</businessRef><orderRef>order
    ref</orderRef><activityId>Activity ID</activityId></StartActivity>
    </setvariable>
    <setvariable time="2002-01-30 10:02:35.011" variable="newXML">
    <Root>
    <Child_1>Child 1 data</Child_1>
    <Child_2><StartActivity><businessRef>bus
    ref</businessRef><orderRef>order
    ref</orderRef><activityId>Activity
    ID</activityId></StartActivity></Child_2>
    </Root>
    </setvariable>
    <marktaskdone time="2002-01-30 10:02:35.011" taskid="2" name="Task
    1"/>
    <workflowdone time="2002-01-30 10:02:35.032" name="TEST ESCAPE XML"/>
    </actions>
    <completed>2002-01-30 10:02:35.037</completed>
    </wlpirequest>
    >

  • Escape XML problem

    Hi,
    This is a FAQ, however, I did a search before posting to the forum but could not find a definite solution. Here is what I am trying to do:
    A webservice is returning a response XML and I am trying to display it on client console. I am able to display it properly on server side. The response is received by client of type 'Document'.
    I create a transformer to get a string and display it on the console, and this is how it is done:
    TransformerFactory tFactory =
        TransformerFactory.newInstance();
      Transformer transformer = tFactory.newTransformer();
      DOMSource source = new DOMSource(document);
      StreamResult result = new StreamResult(System.out);
      transformer.transform(source, result);I get the writer out of the result and do 'toString()' to get the text. but the output shows & lt; instead of <  and similarly of > alsoWhat am I missing? and how do I fix this? Can anyone help me with this? Many of the posts direct to using the parser, i hope they refer to using DocumentBuilderFactory and then factory.parse(..) to get the document... but as I already have the document I did not use it...
    Thanx in advance.

    What you are missing is the explanation of why that is a problem.
    It's normal to escape "<" as "&lt;" if you are talking about data in a text node. But it is not normal to escape the "<" that starts a tag... unless you have an XML document embedded as a text node in an envelope-type document, in which case its tags are treated as text. This sort of thing happens in web services.
    So, do you have a problem? I'm not convinced you do.

  • Xml webservice-parameter

    i have .net webservice and java client.. i wanna send parameter to this webservice in document style.. and the webservice function's return value again in document style..
    How can i do it plz help me..
    Thanks

    I might just be beating around the bush so in that case just ignore the reply.
    see this top level function maybe they help in a way:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/package.html?filter_fle x=4.1&filter_flashplayer=10.1&filter_air=2
    decodeURI(uri:String):String
    Decodes an encoded URI into a string. Top Level
        decodeURIComponent(uri:String):String
    Decodes an encoded URI component into a string. Top Level
        encodeURI(uri:String):String
    Encodes a string into a valid URI (Uniform Resource Identifier). Top Level
        encodeURIComponent(uri:String):String
    Encodes a string into a valid URI component. Top Level
        escape(str:String):String
    Converts the parameter to a string and encodes it in a URL-encoded format,       
    where most nonalphanumeric characters are replaced with % hexadecimal sequences.
    Whenever I worked with webservice I did it with generated wit objects not XML so
    not sure those apply. However I had issues with escaping with URL loader and old
    cgi scripts so those functions were helpfull.
    If they do not apply to your case ignore this as I said,
    Cheers,
    Claudiu

  • XML + webservices = no filtering??

    Greetings!
    I have the following situation:
    I use a webservice to get my information. This returns an xml
    in the following state:
    [code]<getBronnenResult xmlns="
    http://tempuri.org/" xmlns:soap="
    http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="
    http://www.w3.org/2001/XMLSchema">
    <Bronnen>
    <id>81</id>
    <sCount>260</sCount>
    <title>Plant grown from cell culture tissue in test
    tube</title>
    <number>100121</number>
    <width>180</width>
    <height>134</height>
    <croptype/>
    <growthstage/>
    <source>BASF</source>
    <photographer/>
    <photocredit>Print free of charge. Please use
    following photo credit "Copyright © BASF".</photocredit>
    <region>Europe</region>
    <country>Germany</country>
    <city/>
    <disease/>
    <captionnotes/>
    <numberofpeople>0</numberofpeople>
    <nameofmodel/>
    <resolution>72</resolution>
    <bitdepth>24</bitdepth>
    <colourspace>RGB</colourspace>
    <filetype>JPEG</filetype>
    <filesize>47725</filesize>
    <subject>Health,Integrated pest management
    (IPM),Research and development</subject>
    <category>Biotechnology,Crop
    protection,Science</category>
    </Bronnen>[/code]
    I already added the tempuri namespace to my project.
    when I do the following code
    [code]trace("=> " + tempResult.id);[/code]
    I get this result
    <id xmlns="
    http://tempuri.org/" xmlns:soap="
    http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="
    http://www.w3.org/2001/XMLSchema">83</id>
    But I can't seem to filter it...
    so this doesn't seem to work
    [code]trace("=> " + tempResult.(child(id)=='83'));[/code]
    or any variation on this code...
    does someone have a solution for this problem???

    after 14h of non stop searching:
    public function photoDataHandler(event:ResultEvent):void{
    var xml:XML = new XML(event.result.toString());
    var lijst:XMLList = xml.getBronnenResult;
    var tmp:XMLList = lijst.Bronnen.(child("id").toString() ==
    "1764");
    trace("temp = " + tmp);
    }

  • Escaping xml string

    how to escape <,> in xml string to &lt; ,
    &gt;.is it possible to convert the entire xml string into this
    format
    ex:
    <root> <sample><id> 89
    </id></sample></root>
    this has to be converted into
    &lt; root&gt;. &lt; sample&gt;. &lt;
    id&gt;. 89 &lt; /id&gt;. &lt; /sample&gt;.
    &lt; /root&gt;.

    myString="<root> <sample><id> 89
    </id></sample></root>";
    myString.split("<").join("&lt;");

  • Getting xml webservices using soap on xcode

    there is some error in the code , i dont know how to correct it !! *frustated*
    #import "XYZViewController.h"
    @interface XYZViewController ()
    @end
    @implementation XYZViewController
    @synthesize UserName,Password;
    #define startActivityIndicator  [[UIApplication sharedApplication]setNetworkActivityIndicatorVisible:YES]
    #define stopActivityIndicator  [[UIApplication sharedApplication]setNetworkActivityIndicatorVisible:NO];
    // The designated initializer.  Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
    - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
        if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) {
            // Custom initialization
      nodeContent = [[NSMutableString alloc]init];
        return self;
    -(IBAction)invokeService
    if([[UserName text] isEqualToString:@""] || [[Password text] isEqualToString:@""] ) {
            UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"WebService" message:@"Supply Data in UserName or Password field" delegate:nil cancelButtonTitle:nil otherButtonTitles:@"ok",nil];
            [alert show];
        else {
      NSString *soapFormat = [NSString stringWithFormat:@"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
      "<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">\n"
      "<soap:Body>\n"
                                    "<UserAuthentication xmlns=\"http://tempuri.org/\">\n"
                                    "<UserName>%@</UserName>"
                                    "<Password>%@</Password>"
                                    "</UserAuthentication>"
                                    "</soap:Body>"
                                    "</soap:Envelope>", UserName, Password];
      NSLog(@"The request format is %@",soapFormat);
      NSURL *locationOfWebService = [NSURL URLWithString:@"http://10.146.89.22/userauth/Service.asmx"];
      NSLog(@"web url = %@",locationOfWebService);
      NSMutableURLRequest *theRequest = [[NSMutableURLRequest alloc]initWithURL:locationOfWebService];
      NSString *msgLength = [NSString stringWithFormat:@"%d",[soapFormat length]];
      [theRequest addValue:@"text/xml" forHTTPHeaderField:@"Content-Type"];
      [theRequest addValue:@"http://tempuri.org/UserAuthentication" forHTTPHeaderField:@"SOAPAction"];
      [theRequest addValue:msgLength forHTTPHeaderField:@"Content-Length"];
      [theRequest setHTTPMethod:@"POST"];
            [theRequest setHTTPBody: [soapFormat dataUsingEncoding:NSUTF8StringEncoding]];
      //the below encoding is used to send data over the net
      [theRequest setHTTPBody:[soapFormat dataUsingEncoding:NSUTF8StringEncoding]];
      NSURLConnection *connect = [[NSURLConnection alloc]initWithRequest:theRequest delegate:self];
      if (connect) {
      webData = [[NSMutableData alloc]init];
                startActivityIndicator;
      else {
      NSLog(@"No Connection established");
    //NSURLConnection delegate method
    -(void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
      [webData setLength: 0];
    -(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
      [webData appendData:data];
    -(void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error
    NSLog(@"ERROR with theConenction");
    -(void)connectionDidFinishLoading:(NSURLConnection *)connection
    NSLog(@"DONE. Received Bytes: %d", [webData length]);
    NSString *theXML = [[NSString alloc] initWithBytes: [webData mutableBytes] length:[webData length] encoding:NSUTF8StringEncoding];
      NSLog(@"%@",theXML);
    xmlParser = [[NSXMLParser alloc]initWithData:webData];
      [xmlParser setDelegate: self];
    //[xmlParser setShouldResolveExternalEntities: YES];
      [xmlParser parse];
    //[webData release];
    //[resultTable reloadData];
        stopActivityIndicator;
    //xml delegates
    - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName attributes:(NSDictionary *)attributeDict
    - (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string
      [nodeContent appendString:[string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]];
    - (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName
    if ([elementName isEqualToString:@"UserAuthenticationResult"]) {
      UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Message" message:@"you have entered!" delegate:nil cancelButtonTitle:nil otherButtonTitles:@"ok",nil];
                [alert show];
        }/*else {
            UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Message" message:@"you have not entered!" delegate:nil cancelButtonTitle:nil otherButtonTitles:@"ok",nil];
      [alert show];
    - (void)viewDidUnload {
        [super viewDidUnload];
        // Release any retained subviews of the main view.
        // e.g. self.myOutlet = nil;
    -(IBAction)goAwayKeyboard:(id)sender{
        [sender resignFirstResponder];
    -(IBAction)tapBackground:(id)sender{
        [UserName resignFirstResponder];
        [Password resignFirstResponder];
    @end

    sir , i didnt wanna offend you with this stupid question of mine ,moreover i didnt know if noobs ask some question pros really get angry, but i am really new to this thing, *sorry*.
    theres some problem with userauthenticationresult , i am not able to connect , how to return its value ! 

  • HL7 to xml webservice

    Hi Gurus,
    Is there any webservice (XEngine functionality) or command line tool available to convert raw HL7 to xml and vice versa in B2B deployment?
    Thanks,
    Datla

    Thanks Michael,
    Yes, I am interested to look at that solution with JMS Queue.
    BTW: Can you look at my question about QBrowser V2 setup on VirtualBox here..
    How to use QBrowser V2 with Virtual box environment
    Thanks,
    Datla
    Edited by: u101947 on May 29, 2011 10:57 AM

  • Xml webservices configuration problem

    WHILE EXECUTING
    set long 500
    set pagesize 100
    XQUERY declare default element namespace "http://xmlns.oracle.com/xdb/xdbconfig.xsd";
    for $doc in fn:doc("/xdbconfig.xml")/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-list/servlet[servlet-name='orawsv']
    return $doc
    I GOT AN ERROR
    Error starting at line 3 in command:
    select column_value from xmltable(' declare default element namespace "http://xmlns.oracle.com/xdb/xdbconfig.xsd";
    for $doc in fn:doc("/xdbconfig.xml")/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-list/servlet[servlet-name='orawsv']
    return $doc')
    Error at Command Line:4 Column:146
    Error report:
    SQL Error: ORA-02000: missing COLUMNS keyword
    02000. 00000 -  "missing %s keyword"
    Please help ,i needed to xml db configuration

    showed me this..
    Oops! Google Chrome could not connect to 127.0.0.1:8080
    when i ran the code
    connect / AS sysdba
    SELECT dbms_xdb.gethttpport FROM dual;
    EXEC dbms_xdb.sethttpport(8080);
    ALTER system SET dispatchers='(PROTOCOL=TCP)(SERVICE=$ORACLE_SIDXDB)' comment='Dispatcher enabled for XMLDB Protocol Server' scope = BOTH;
    ALTER system SET shared_servers=5 scope=BOTH;
    ALTER system register;
    grant dba, xdbadmin to test;
    alter user test identified by test account unlock;
    set echo off
    set termout on
    set feed off
    show user
    --Enable the orawsv entry points in xdbconfig.xml
    DECLARE
      SERVLET_NAME VARCHAR2(32) := 'orawsv';
    BEGIN
    DBMS_XDB.deleteServletMapping(SERVLET_NAME);
    DBMS_XDB.deleteServlet(SERVLET_NAME);
    DBMS_XDB.addServlet(NAME => SERVLET_NAME,
    LANGUAGE => 'C',
    DISPNAME => 'Oracle Query Web Service',
    DESCRIPT => 'Servlet for issuing queries as a Web
    Service',
    SCHEMA => 'XDB');
    DBMS_XDB.addServletSecRole(SERVNAME => SERVLET_NAME,
    ROLENAME => 'XDB_WEBSERVICES',
    ROLELINK => 'XDB_WEBSERVICES');
    DBMS_XDB.addServletMapping(PATTERN => '/orawsv/*',NAME => SERVLET_NAME);
    END;
    commit;
    -- User Name declare USERNAME=SCOTT -- User Password  declare PASSWORD=tiger
    -- DBMS_NETWORK_ACL_ADMIN to Validate Grant Permission
    begin
    dbms_network_acl_admin.drop_acl('/localhost.xml');
      end;
      begin
    dbms_network_acl_admin.create_acl('/localhost.xml', 'ACL for 127.0.0.1',
    '&USERNAME', true, 'connect');
    dbms_network_acl_admin.assign_acl('/localhost.xml', '127.0.0.1'); end;
    and typed in url
    as
    127.0.01:8080/orawsv?wsdl

  • Escape XML entities when transforming

    Hey,
    I'm transforming an XML file to another XML format. My problem is that in the original XML there are entities like "&copy". These entities get transformed as well which produces problems later on. Is there some way to avoid the entities from being expanded? I have tried to google for an answer without success. The only thing I found was the "setExpandEntityReferences" which doesn't have any effect. Otherwise the transformation works fine, just having problems with the entities.
    Thanks for any help!

    Generally the parser will expand those entities, so the transformer doesn't even know there were any entities in the document. What you're asking for is for the serializer to put entity references back into the output document. (And preferably for the transformer to preserve them through the transformation, too, I suppose.)
    I don't believe there is anything in XSLT that deals with entities at all... actually, looking at the XSLT recommendation there is an unparsed-entity-uri(string) function, but you're asking about parsed entities from the DTD, right?
    In theory the version of the document with the entities replaced by their replacement text should be equivalent to the version with the entity references, no? Is there just an esthetic difference or is there an actual difference in meaning between what you get and what you want to get?

  • Fields missing from webservice datasource in SSRS

    We are using a XML webservice as a datasource for SSRS. The webservice is returning  the hierarchy of departments of our company.
    The data is consumed by SSRS but some fields are missing.
    This is (simplified) what is returned by the webservice:
    <department>
      <nr>1</nr>
      <name>name1/name>
    </department>
    <department>
      <nr>2</nr>
      <name>name2/name>
      <parentdepartment>1</parentdepartment>
    </department>
    etc
    The field parentdepartment is missing from the fieldlist, even if I add it by hand it will be empty.
    At this forum I found that fields are even skipped when the first item has an empty value for a certain field so the absence of a field in the first item must certainly be the
    problem. Nr 1 has no parentdepartment field.
    Is there a way around this like skipping the first department, we don't need it, or forcing the SSRS-datasource to add the parentdepartment field.
    As it is used by many applications we prefer not to change the webservice to skip the first or add dummy values to the first item.

    Typically if the field doesn't show up the CR can't figure out what type it is which means when we query the DB for the field type the client/server returns the wrong type or some type that CR doesn't support.
    How is the field defined on the server?
    Thank you
    Don

  • Javax.xml.rpc.JAXRPCException: Cannot unmarshal jaxrpc-mapping-file:

    Hi,
    I am using jboss for deploying the webservice. when i am deploying the webservice i am getting following error.
    20:26:30,696 INFO [WSDLFilePublisher] WSDL published to: file:/C:/jboss4.0/jboss-4.0.0/server/default/data/wsdl/acWebSe
    rvices.war/AddressWrapper.wsdl
    20:26:30,696 ERROR [ServiceDeployer] Cannot startup webservice for: acWebServices.war
    org.jboss.deployment.DeploymentException: Cannot deploy webservice; - nested throwable: (RuntimeMBeanException: null Cau
    se: javax.xml.rpc.JAXRPCException: Cannot unmarshal jaxrpc-mapping-file: WEB-INF/AddressWrapper-mapping.xml)
    at org.jboss.webservice.ServiceDeployer.deployWebservices(ServiceDeployer.java:342)
    at org.jboss.webservice.ServiceDeployer.startWebservice(ServiceDeployer.java:203)
    at org.jboss.webservice.ServiceDeployer.handleNotification(ServiceDeployer.java:113)
    at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
    at $Proxy25.handleNotification(Unknown Source)
    at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:104)
    at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:87)
    at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:178)
    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:378)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:935)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:927)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:746)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
    at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
    at $Proxy8.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:463)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:20
    4)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)
    Here is my mapping.xml file :
    <?xml version="1.0" encoding="UTF-8"?>
    <java-wsdl-mapping version="1.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd">
    <package-mapping>
    <package-type>com.ca.ac.webservice.wrapper</package-type>
    <namespaceURI>http://com.ca.warpper</namespaceURI>
    </package-mapping>
    <package-mapping>
    <package-type>com.ca.ac.webservice.wrapper</package-type>
    <namespaceURI>http://com.ca.warpper</namespaceURI>
    </package-mapping>
    <java-xml-type-mapping>
    <java-type>com.ca.ac.webservice.wrapper.AddressWrapperIntf_test_RequestStruct</java-type>
    <root-type-qname xmlns:typeNS="http://com.ca.warpper">typeNS:test</root-type-qname>
    <qname-scope>complexType</qname-scope>
    </java-xml-type-mapping>
    <java-xml-type-mapping>
    <java-type>com.ca.ac.webservice.wrapper.AddressWrapperIntf_test_ResponseStruct</java-type>
    <root-type-qname xmlns:typeNS="http://com.ca.warpper">typeNS:testResponse</root-type-qname>
    <qname-scope>complexType</qname-scope>
    </java-xml-type-mapping>
    <service-interface-mapping>
    <service-interface>com.ca.ac.webservice.wrapper.AddressWrapper</service-interface>
    <wsdl-service-name xmlns:serviceNS="http://com.ca.warpper">serviceNS:AddressWrapper</wsdl-service-name>
    <port-mapping>
    <port-name>AddressWrapperIntfPort</port-name>
    <java-port-name>AddressWrapperIntfPort</java-port-name>
    </port-mapping>
    </service-interface-mapping>
    <service-endpoint-interface-mapping>
    <service-endpoint-interface>com.ca.ac.webservice.wrapper.AddressWrapperIntf</service-endpoint-interface>
    <wsdl-port-type xmlns:portTypeNS="http://com.ca.warpper">portTypeNS:AddressWrapperIntf</wsdl-port-type>
    <wsdl-binding xmlns:bindingNS="http://com.ca.warpper">bindingNS:AddressWrapperIntfBinding</wsdl-binding>
    <service-endpoint-method-mapping>
    <java-method-name>test</java-method-name>
    <wsdl-operation>test</wsdl-operation>
    <wrapped-element/>
    </service-endpoint-method-mapping>
    </service-endpoint-interface-mapping>
    </java-wsdl-mapping>
    my wsdl :
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="AddressWrapper" targetNamespace="http://com.ca.warpper" xmlns:tns="http://com.ca.warpper" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types>
    <schema targetNamespace="http://com.ca.warpper" xmlns:tns="http://com.ca.warpper" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://www.w3.org/2001/XMLSchema">
    <complexType name="test">
    <sequence/></complexType>
    <complexType name="testResponse">
    <sequence/></complexType>
    <element name="test" type="tns:test"/>
    <element name="testResponse" type="tns:testResponse"/></schema></types>
    <message name="AddressWrapperIntf_test">
    <part name="parameters" element="tns:test"/></message>
    <message name="AddressWrapperIntf_testResponse">
    <part name="result" element="tns:testResponse"/></message>
    <portType name="AddressWrapperIntf">
    <operation name="test">
    <input message="tns:AddressWrapperIntf_test"/>
    <output message="tns:AddressWrapperIntf_testResponse"/></operation></portType>
    <binding name="AddressWrapperIntfBinding" type="tns:AddressWrapperIntf">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
    <operation name="test">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="literal"/></input>
    <output>
    <soap:body use="literal"/></output></operation></binding>
    <service name="AddressWrapper">
    <port name="AddressWrapperIntfPort" binding="tns:AddressWrapperIntfBinding">
    <soap:address location="REPLACE_WITH_ACTUAL_URL"/></port></service></definitions>
    my webservice.xml
    <webservices
    xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:impl="http://com.myapp/ws4ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd"
    version="1.1">
    <webservice-description>
    <webservice-description-name>AddressWrapper</webservice-description-name>
    <wsdl-file>WEB-INF/wsdl/AddressWrapper.wsdl</wsdl-file>
    <jaxrpc-mapping-file>WEB-INF/AddressWrapper-mapping.xml</jaxrpc-mapping-file>
    <port-component>
    <port-component-name>AddressWrapper</port-component-name>
    <wsdl-port>AddressWrapperIntfPort</wsdl-port>
    <service-endpoint-interface>com.ca.ac.webservice.wrapper.AddressWrapper</service-endpoint-interface>
    <service-impl-bean>
    <servlet-link>AddressWrapperServlet</servlet-link>
    </service-impl-bean>
    </port-component>
    </webservice-description>
    </webservices>

    Problem was name of xml file in webservice.xml is diff from the actually created .xml file
    Problem solved
    Thanks

Maybe you are looking for

  • I'm not sure what I've done but I need help please

    Hi everyone. I seem to have done something really stupid. In the finder window, I renamed the 'folder' that has the house next to it, from Michaellastname just to Mike. Following that, I went into Front Row to watch a movie saved in my "Movie" folder

  • HFR- maximum no of rows in reports

    Hi, We are working on Hyperion system 9.3.1 financial reporting with Esssbase as a source. We are getting the error related to the maximum limit of rows that FR server can process. Error mesg say that FR server can process only 100000 rows. we are as

  • XML OPP manager Tunning

    Hi, 11.5.10.2 apps--->9.2.0.6 db--->5.6.3 xml publisher version Am new to this concept...a new client am working for... am assigned to check why sometimes reports are failing of XML publisher. and i am to dont know much abt XML publisher....and its p

  • Problem in installing oracle database 11g express edition

    while installing oracle database 11g express edition during product specific prerequisite check, checking for oracle XE service instance is failed, what to do ?

  • Question about SWF in Firefox

    hey,guys.. I don't know if you met this question.. I create a SWF from Flash cs5 and this SWF will load a XML.. the XML had specified a list of images the SWF will load these images from this XML then I export the SWF from Flash CS5 and import it int