Root Element of a Text Node

Hi All,
I have the following XML Document.
<?xml version="1.0"?>
<addressbook>
<address>
<fname>Bill</fname>
<lname>Gates</lname>
<address>
<address>
<fname>Jones</fname>
<lname>Bill</lname>
<address>
<address>
<fname>Mark</fname>
<lname>Anderson</lname>
<address>
<address>
<fname>Bill</fname>
<lname>Sam</lname>
<address>
<address>
<fname>Charles</fname>
<lname>Corbel</lname>
<address>
</addressbook>
I need all the root element in the xml Document which has the data "Bill". How i can find that?
Thanks in Advance,
Mohideen.

Hi Amaury,
Thanks for your response.
Already, I have been working on the logic that you had suggested. But it complicates the code much.
I found JDOM API has the Text class with constructor of the type
Text(java.lang.String str).I used that in my class.
Here is the code,
import org.jdom.*;
import org.jdom.JDOMException;
import org.jdom.input.SAXBuilder;
public class SearchText
public static void main(String[] args)
try
// use SAXBuilder to create DOM from numerous types of input
SAXBuilder builder = new SAXBuilder();
// expand entities within the SAXBuilder
//builder.setExpandEntities(true);
// SAXBuilder is more does create the entire DOM at once
org.jdom.Document doc = builder.build(args[0]);
System.out.println( doc );
Text text = new Text("bill");
//how to find out this text object in the Document class object
Element parent = text.getParent();
System.out.println("Parent:"+parent.toString());
catch (JDOMException e)
e.printStackTrace();
I am getting the following run time error,
Exception in thread "main" java.lang.NullPointerException
at SearchText.main(SearchText.java:24)
Please kindly notify me where i did the mistake.
Thanks,
Mohideen.

Similar Messages

  • #text nodes

    Hello,
    I am parsing xml document using xerces with schema validation on, without DTD.
    <xs:element name="variant">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="ds:default"/>
    <xs:element ref="ts:answer"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    As I understand this element should be "element only": without #text nodes in the dom tree.
    But I get: #text default #text answer #text.
    Can I fix it?
    Thanks
    Justinas

    Do you have white space between the nodes? I believe you can tell the parser to ignore white space that is not required by the schema.

  • Xmlparser_v2 TEXT NODE PASSING

    there was a thread earlier about the need to pass an element to
    a text node to see the actual text content of the node...
    can anyone tell me how is it done? TIA.
    James
    null

    there was a thread earlier about the need to pass an element to
    a text node to see the actual text content of the node...
    can anyone tell me how is it done? TIA.
    James
    null

  • Manipulating Text Nodes

    Hi,
    I have only recently begun working with XML and the DOM. I have
    begun writng a small app to upload XML data to a database using
    the version 2 parser. I am having trouble getting at the content
    of text nodes ( for example the "Stan" in <name>Stan</name> ). I
    have tried using the getNodeValue() function,and casting to a
    XMLText and the getData() function. I know I am at the correct
    node because I have used to the getNodeName() function to
    generate a list of nodes as I work my way through the document
    from the root. What am I missing?
    Thank you for your help,
    Stan Grabinski
    null

    Stan Grabinski (guest) wrote:
    : Hi,
    : I have only recently begun working with XML and the DOM. I
    have
    : begun writng a small app to upload XML data to a database
    using
    : the version 2 parser. I am having trouble getting at the
    content
    : of text nodes ( for example the "Stan" in
    <name>Stan</name> ). I
    : have tried using the getNodeValue() function,and casting to a
    : XMLText and the getData() function. I know I am at the
    correct
    : node because I have used to the getNodeName() function to
    : generate a list of nodes as I work my way through the document
    : from the root. What am I missing?
    : Thank you for your help,
    : Stan Grabinski
    You need to use the getNodeValue() method against the text node
    associated with the element node of interest not the element
    node itself. If this doesn't help, please post a code sample and
    the XML file.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • Extra #Text node

    Hi,
    It seems I got extra #Text node in my DOM object. For example, if my XML is as follows:
    <Root>
    <FirstElement>Value</FirstElement>
    </Root>
    My DOM tree will look like:
    + ELEMENT: Root
    + #TEXT:
    + ELEMENT: FirstElement
    + #TEXT: Value
    + #TEXT:
    Is there a way to avoid those extra empty #Text Node?

    //Create a DocumentBuilderFactory 
    DocumentBuilderFactory factory =
                DocumentBuilderFactory.newInstance();
    //Set the factory object to be validating
    factory.setValidating(true);
    //Set the factory object to not parse empty text nodes
    factory.setIgnoringElementContentWhitespace(true);
    //Create a DocumentBuilder and parse XML document
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document     document = builder.parse(new File("input.xml"));

  • The text which is in text node is not displaying in output in smartforms

    Hi,
      In smartforms i created a text node and entered some text like following.
         Target Quantity               60000001     60000002          
         Scheduled Quantity               60000003     60000004               
         So far delivered Quantity          60000005     60000006
         Last delivered Quantity          60000007     60000008
          Delivery Schedule Details
    the text which i entered as above in the text node is not displaying.It is in main area.

    Hi
    if u are using table or template inside the main window
    then just mention the position of the text element
    goto text element - output options- output structure tab----give line and column no.
    Thanks
    krushna

  • E4X: What happens to the root element?

    I'm working with XML using the E4X notation. I'm used to the "old school" XML APIs that use DOM and I'm a bit confused.
    For example, let's consider the following XML
    <mx:XML id="myXML" >
      <top>
        <sub1 id="uno">
          <sub2>hello</sub2>
          <sub3>world</sub3>
        </sub1>
        <sub1 id="duo">
          <sub2>ok</sub2>
          <sub3>ko</sub3>
        </sub1>
      </top>
    </mx:XML>
    In my code I use the following traces. This is done with the De MonsterDebugger, but all others should work the same way. I have casted the traces to String only to make it easier to ask this question (no need post images)
    MonsterDebugger.trace(this, "myXML:" + myXML);
    MonsterDebugger.trace(this, "myXML.sub1: " + myXML.sub1);
    MonsterDebugger.trace(this, "myXML.sub1.sub2: " + myXML.sub1.sub2);
    What I get as output is
    (String) = myXML:<top>
      <sub1 id="uno">
        <sub2>hello</sub2>
        <sub3>world</sub3>
      </sub1>
      <sub1 id="duo">
        <sub2>ok</sub2>
        <sub3>ko</sub3>
      </sub1>
    </top>
    (String) = myXML.sub1: <sub1 id="uno">
      <sub2>hello</sub2>
      <sub3>world</sub3>
    </sub1>
    <sub1 id="duo">
      <sub2>ok</sub2>
      <sub3>ko</sub3>
    </sub1>
    (String) = myXML.sub1.sub2: <sub2>hello</sub2>
    <sub2>ok</sub2>
    All is fine above and this was a bit long abstract for my question. The question is what happens to the root element, in this case <top>? I was trying to access the data with the following notation
    myXML.top.sub1; // etc
    I spent quite a lot of time trying to get it to work, until I discovered that the root element is not used. Can anyone explain this?
    Or, I guess the simple explanation is that the root node is ignored and the sub nodes are created as properties of the object. The question also could be stated as: Why isn't this documented in the Flex API Reference?
    Thanks.
    P.S. I found this article on common E4X pitfalls which also has other interesting topics when working with E4X.

    its gone
    downgrading would kill the phone..

  • "root element is missing" - UTF-8

    I have 2 identical files, except they are stored in ISO-8859-1 and UTF-8.
    "Test ansii.xml":
    <?xml version="1.0" encoding="ISO-8859-1"?><e></e>
    "Test utf8.xml":
    <?xml version="1.0" encoding="UTF-8"?><e></e>
    When I look at them in Internet Explorer they show correctly. But when I parse them with SAX in java I get an error when I parse the file stored in UTF-8.
    import java.io.*;
    import javax.xml.parsers.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
      public static void testXML(){
        try{
          File ansiiFile=new File("Test ansii.xml");
          File utf8File=new File("Test utf8.xml");
          SAXParserFactory factory = SAXParserFactory.newInstance();
          SAXParser saxParser = factory.newSAXParser();
          //try ISO-8859-1
          InputSource in = new InputSource(new InputStreamReader(new FileInputStream(ansiiFile),"ISO-8859-1"));
          saxParser.parse(in,new DefaultHandler());
          //try UTF-8
          in = new InputSource(new InputStreamReader(new FileInputStream(utf8File),"UTF-8"));
          saxParser.parse(in,new DefaultHandler());
        }catch(Exception e){
          e.printStackTrace();
      }The first file parses well, but when I parse the file encoded in UTF-8 I get this error:
    org.xml.sax.SAXParseException: The Document root element is missing.
         at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
         at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3170)
         at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:501)
         at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
         at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
         at test.Test.testXML(Test.java:44)
         at test.Test.main(Test.java:25)
    Gil

    Sigh, I found the answer.
    http://www.i18ngurus.com/encyclopedia/byte_order_mark.html
    byte order mark
    Also known as BOM.
    Name given to the Unicode character U+FEFF when used at the beginning of a Unicode byte stream. This invisible character generally know as ZERO WIDTH NO-BREAK SPACE (ZWNBSP) serves to identify unambiguously the Unicode transformation form used (and especially the byte order) for the stream. Indeed U+FFFE is a noncharacter so there is no risk of misinterpretation.
    The following represents the byte signature of the character U+FEFF with the various Unicode Transformation Forms:
    Bytes Encoding
    00 00 FE FF UTF-32, big-endian
    FF FE 00 00 UTF-32, little-endian
    FE FF UTF-16, big-endian
    FF FE UTF-16, little-endian
    EF BB BF UTF-8
    Historically the ZWNBSP was also used to indicate non-breaking but this use is now deprecated and replaced by the character U+2060 for that purpose.
    http://p2p.wrox.com/archive/xslt/2002-11/79.asp
    I suspect you edited the stylesheet using a text editor that inserts the
    BOM at the start of the file. For example, I think Windows Notepad does
    this.
    Some XML parsers accept a BOM at the start of a UTF-8 file, others
    don't. For example, the Crimson parser that comes with JDK 1.4 doesn't.
    You basically need to find a text editor and an XML parser that agree
    with each other about whether or not to use a byte order mark.
    Alternatively, use a different encoding for the stylesheet, e.g.
    iso-8859-1.
    The code above found these strange bytes while expecting '<', and crashed of course.
    Gil

  • XML "Document root element is missing"

    i have made a research in the forums but i have no definite solution about the error.
    my flash client sends XML stream to my ServerSocket. and i want to parse these XML datas.
    Document XMLDoc;
    DocumentBuilderFactory Factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder Builder = Factory.newDocumentBuilder() ;
    InputSource Is = new InputSource(new BufferedReader(new InputStreamReader(Sock.getInputStream(),"UTF-16LE")));
    XMLDoc = Builder.parse(Is);
    But now i have problem called "Document root element is missing". My XML stream comming from flash client :
    // Actionscript code :
         XDoc = new XML("<?XML version=\"1\"?><LOGIN><USERNAME>KHARON</USERNAME><PASSWORD>485009</PASSWORD></LOGIN>");
    ----- The XML data i want to sent to ...
    <?XML version="1"?>
    <LOGIN>
    <USERNAME>KHARON</USERNAME>
    <PASSWORD>485009</PASSWORD>
    </LOGIN>
    What is the problem ?

    now ?
    // Actionscript
    XSock = new XMLSocket();
    XSock.connect("127.0.0.1",6667);
    XDoc = new XML("<?xml version=\"1.0\"?><LOGIN><USERNAME>KHARON</USERNAME><PASSWORD>ew2345dfs</PASSWORD></LOGIN>");
    // Java
    public void run() {
    try {
    Document XMLDoc;
    DocumentBuilderFactory Factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder Builder = Factory.newDocumentBuilder() ;
    InputSource Is = new InputSource(new BufferedReader(new InputStreamReader(Sock.getInputStream(),"UTF-16LE")));
    XMLDoc = Builder.parse(Is);
    org.w3c.dom.Node Node = XMLDoc.getFirstChild();
    System.out.print(Node.getNodeValue());
    /* Incomming data test code
    System.out.print("Listening to incomming messeges");
    char in ;
    while ( (in = (char)Reader.read()) != -1 ) {
    System.out.print( in );
    but the result
    parser exception ( Document root element is missing )
    ihave made a research ( i am newbee in XML) and i have made some declerations like <!DOCTYPE LOGIN <!Element ...
    i have declared root element with DOC type decleration. but the same error. :|
    since 2 days i am working over these, but solution = null

  • "Root element is missing." - While using Sharepoint List Source in SSIS.

    Hi Team,
    We are trying to import data from sharepoint list using sharepointlist source in SSIS. But the following error pops-up.
    [SP_SRC_SharePointList [67]] Error: System.Xml.XmlException: Root element is missing.
       at System.Xml.XmlTextReaderImpl.Throw(Exception e)
       at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
       at System.Xml.XmlTextReaderImpl.Read()
       at System.Xml.XmlReader.MoveToContent()
       at System.Xml.Linq.XElement.Load(XmlReader reader, LoadOptions options)
       at System.Xml.Linq.XElement.Parse(String text, LoadOptions options)
       at System.Xml.Linq.XElement.Parse(String text)
       at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListSource.PrimeOutput(Int32 outputs, Int32[] outputIDs, PipelineBuffer[] buffers)
       at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostPrimeOutput(IDTSManagedComponentWrapper100 wrapper, Int32 outputs, Int32[] outputIDs, IDTSBuffer100[] buffers, IntPtr ppBufferWirePacket)
    We are unable to debug / move any further. Request your help.
    Thank you.
    Best Regards,
    Gayathri

    It appears that the XML you trying to load does indeed not have the root element.
    E.g.
    <?xml version="1.0" encoding="UTF-8"?>
    <iii>
    <kkk>test</kkk>
    <ppp>000</ppp>
    </iii>
    <iii>
    <kkk>test</kkk>
    <ppp>000</ppp>
    </iii>
    <iii>
    <kkk>test</kkk>
    <ppp>000</ppp>
    </iii>has nonemust be<?xml version="1.0" encoding="UTF-8"?>
    <Root><iii>
    <kkk>test</kkk>
    <ppp>000</ppp>
    </iii>
    <iii>
    <kkk>test</kkk>
    <ppp>000</ppp>
    </iii>
    <iii>
    <kkk>test</kkk>
    <ppp>000</ppp>
    </iii></Root>
    Arthur My Blog

  • How to customize attribute in root element?

    I'm using TSQL to generate an XML file from a SELECT query.  I'm 99% of the way to creating the precise format the client requires.  Here's the top portion of what I currently have:
    <Feed>
    <Interaction>
    <TransactionDate>2012-01-17T19:18:26.703</TransactionDate>
    The ONLY thing I want to change is to add an attribute to the root element so that things look like this:
    <Feed xmlns="http://www.bazaarvoice.com/xs/PRR/PostPurchaseFeed/5.6">
    <Interaction>
    <TransactionDate>2012-01-17T19:18:26.703</TransactionDate>
    That's it.  But I've read 20+ different discussions about this and nothing works.
    Might anyone have a solution?
    Robert W.

    Hi,
    Maybe you can refer to the following URL,
    to try to solve your questions.
    http://stackoverflow.com/questions/12726426/tsql-for-xml-add-schema-attribute-to-root-node
    | SQL PASS Taiwan Page |
    SQL PASS Taiwan Group
    |
    My Blog

  • Name Space deplaration in root element in soap message

    My soap client is having problems interpreting the response received from my Java service. When implemented using Endpoint.publish it works, whoever once packaged up inside an WAR file it break my client. After some investigation I found that the response message differs slightly. It seems that the namespace is declared on the root element using JAX-WS 2.0, and within the content body using JAX-WS 2.1. As I am not able to change the soap framework on my client, I am wondering if there is an option I could get either JAX-WS or JAX-B to produce the response message in the working format.
    This is the fault generated by Endpoint.publish (Java5 with JAX-WS 2.0):
    HTTP/1.1 500 Internal Server Error
    Content-length: 507
    Content-type: text/xml; charset=utf-8
    <?xml version="1.0" ?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:ns1="http://addressbookserver.j2anywhere.com/">
    <soapenv:Body>
    <soapenv:Fault xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <faultcode>soapenv:Server</faultcode>
    <faultstring>Unable to verify license</faultstring>
    <detail><ns1:LicenseException>
    Unable to verify license
    </ns1:LicenseException></detail>
    </soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>This is the fault received from Tomcat (Java5 with JAX-WS 2.1):
    HTTP/1.1 500 Internal Server Error
    Server: Apache-Coyote/1.1
    Content-Type: text/xml;charset=utf-8
    Date: Thu, 19 Jun 2008 22:26:17 GMT
    Connection: close
    <?xml version="1.0" ?>
    <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Body>
    <S:Fault xmlns:ns3="http://www.w3.org/2003/05/soap-envelope">
    <faultcode>S:Server</faultcode>
    <faultstring>Unable to verify license</faultstring>
    <detail>
    <ns2:LicenseException xmlns:ns2="http://addressbookserver.j2anywhere.com/">
    Unable to verify license
    </ns2:LicenseException>
    </detail>
    </S:Fault>
    </S:Body>
    </S:Envelope>Thanks in advance

    Those two documents look functionally the same to me. It shouldn't matter whether the namespaces are declared at a higher level than necessary. If you have a client that treats those two documents differently then I would say it's not working correctly.

  • How to remove namespace from root-element

    Hi Gurus,
    I want one xml output from xslt transformation with no namespace. I managed to remove namespace from child elements by leveraging elementFormDefault ='unqualified' property of xsd. But not able remove namespace from root-element.
    Output that I want is :
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <inp1:Email_Mod_Root>
       <Email_Mod_Root_Element>
          <Email_Record1>
             <PERSON_NUMBER>123456</PERSON_NUMBER>
             <COUNTRY/>
              <EMAIL_TYPE>WORK</EMAIL_TYPE>
             <EMAIL>EMAIL3</EMAIL>
             <PRIMARY_FLAG>Y</PRIMARY_FLAG>
          </Email_Record1>
    </Email_Mod_Root_Element>
    </Email_Mod_Root>
    Output that I am getting:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <inp1:Email_Mod_Root xmlns:inp1="http://www.example.org">
       <Email_Mod_Root_Element>
          <Email_Record1>
             <PERSON_NUMBER>123456</PERSON_NUMBER>
             <COUNTRY/>
             <EMAIL_TYPE>WORK</EMAIL_TYPE>
             <EMAIL>EMAIL3</EMAIL>
             <PRIMARY_FLAG>Y</PRIMARY_FLAG>
          </Email_Record1>
    </Email_Mod_Root_Element>
    </Email_Mod_Root>
    Anyone, pls suggest.
    Thanks in advance,
    SG_SOA

    First of all :
    <inp1:Email_Mod_Root>
       <Email_Mod_Root_Element>
          <Email_Record1>
             <PERSON_NUMBER>123456</PERSON_NUMBER>
             <COUNTRY/>
              <EMAIL_TYPE>WORK</EMAIL_TYPE>
             <EMAIL>EMAIL3</EMAIL>
             <PRIMARY_FLAG>Y</PRIMARY_FLAG>
          </Email_Record1>
    </Email_Mod_Root_Element>
    </Email_Mod_Root>
    isn't valid xml (you start with inp1: prefix and you end the tag with no prefix, but let's assume you don't want any prefix/namespace at all)
    if i use :
    [code]
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:inp1="http://www.example.org" exclude-result-prefixes="inp1">
      <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
    <xsl:template match="*">
        <xsl:element name="{local-name(.)}">
          <xsl:apply-templates select="@* | node()"/>
        </xsl:element>
      </xsl:template>
      <xsl:template match="@*">
        <xsl:attribute name="{local-name(.)}">
          <xsl:value-of select="."/>
        </xsl:attribute>
      </xsl:template>
    </xsl:stylesheet>
    [/code]
    i get this
    [code]
    <Email_Root_Element>
      <Email_Record>
      <EMPLID>EMPLID46</EMPLID>
      <EMAIL>EMAIL48</EMAIL>
      <E_ADDR_TYPE>E_ADDR_TYPE49</E_ADDR_TYPE>
      <COUNTRY>US</COUNTRY>
      </Email_Record>
      <Email_Record>
      <EMPLID>EMPLID47</EMPLID>
      <EMAIL>EMAIL49</EMAIL>
      <E_ADDR_TYPE>E_ADDR_TYPE50</E_ADDR_TYPE>
      <COUNTRY>US</COUNTRY>
      </Email_Record>
      <Email_Record>
      <EMPLID>EMPLID48</EMPLID>
      <EMAIL>EMAIL49</EMAIL>
      <E_ADDR_TYPE>E_ADDR_TYPE51</E_ADDR_TYPE>
      <COUNTRY>US</COUNTRY>
      </Email_Record>
    </Email_Root_Element>
    [/code]

  • XMLSearch / case in-sensitive search in a text node value with XPATH

    Hi everyone,
    I was aggregating some XML files and queries for a search
    engine. It is pretty easy with coldfusion XML functions BUT ....
    I was looking around XMLSearch to do a simple text search
    into nodes and I am stuck with it.
    with something like that :
    selectedElements = XmlSearch(myxmldoc,
    '(/directory/user[contains(.,"#form.firstName#")])');
    Without loop all the XML elements, I cannot put firstName
    text nodes to lower-case, do a simple search into the directory and
    get user entries.
    Is it possible to do with XPATH something like that :
    selectedElements = XmlSearch(myxmldoc,
    '(/directory/user[contains(lower-case(.),lower-case("#form.firstName#"))])');
    Thanks for your help.

    When Do you think coldfusion will implement Xpath functions
    as
    http://www.w3schools.com/xpath/xpath_functions.asp
    ????

  • Error parsing envelope: (1, 1) Start of root element expected.

    Hello BI Publisher:
    The issue has been resolved. I found the cause the problem. The following line in my WSDL was preventing BI Publisher from reading the WSDL, which will return the "Error parsing envelope" message:
    <xsd:attribute name="dateTimeTagFormat" fixed="xsd" use="required"/>
    Once I removed the above line, BI Publisher was able to read the WSDL without any issues, and run the report.
    Benjamin
    Hello BI Publisher:
    I am trying to define a new dataset of type "Web Service", with a Complex Type configuration using WS-Security 2004. I get the following error when I try to "View" it:
    **"javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected."**
    This happens even if my Application Server (where the service is located) is not running, so I suspect that the error happens before the Publisher server tries to send the SOAP envevelop to the service server.
    Publisher Version: Release 10.1.3.4
    Complex Type: True
    Username: User1
    Password: ******
    Time Out: 60
    WSDL URL: http://localhost:4100/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF?WSDL
    Web Service: ZZ_BIP_XAI_ZFService
    Method: ZZ_BIP_XAI_ZF
    ResponseData XPath: <blank>
    Here is the Publisher server log in debug mode:
    [072909_110222553][][STATEMENT] Setting data definition:New DataSet 1 type:oracle.apps.xdo.servlet.data.bind.WebServiceBoundValue11
    [072909_110222569][][STATEMENT] Skip migration for cookie (ORA_XDO) is not found
    [072909_110228644][][STATEMENT] Skip migration for cookie (ORA_XDO) is not found
    [072909_110228690][][STATEMENT] WebServiceBoundValue11::getValue m_xpath =
    [072909_110228690][][STATEMENT] WSS Parameter = 2004
    09/07/29 11:02:28 WebServiceCall::callComplexClient SOAP Message = null
    [072909_110228706][][STATEMENT] SOAP Response XPATH =
    [072909_110228706][][STATEMENT] http://localhost.us.oracle.com:4100/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF?WSDL
    [072909_110228706][][STATEMENT] ZZ_BIP_XAI_ZF
    [072909_110228706][][STATEMENT] null
    09/07/29 11:02:28 WebServiceCall::callComplexClient WS-Security Enabled - uid [SPLBPG], pwd [splbpg00], spec-2004 [true]
    09/07/29 11:02:28 javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
    09/07/29 11:02:28 at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:103)
    09/07/29 11:02:28 at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:76)
    09/07/29 11:02:28 at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1429)
    09/07/29 11:02:28 at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1399)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.data.server.WebServiceCall.callComplexClient(WebServiceCall.java:179)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.data.server.WebServiceCall.doFetch(WebServiceCall.java:63)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.data.server.AbstractDataCall.execute(AbstractDataCall.java:63)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.data.bind.WebServiceBoundValue11.getValue(WebServiceBoundValue11.java:147)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.ReportContextImplV11.getReportXMLData(ReportContextImplV11.java:412)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.CoreProcessor.process(CoreProcessor.java:231)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.java:82)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:552)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.java:255)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:270)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:250)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:178)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.XDOServlet.doPost(XDOServlet.java:201)
    09/07/29 11:02:28 at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    09/07/29 11:02:28 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    09/07/29 11:02:28 at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:94)
    09/07/29 11:02:28 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    09/07/29 11:02:28 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    09/07/29 11:02:28 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    09/07/29 11:02:28 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    09/07/29 11:02:28 at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    09/07/29 11:02:28 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    09/07/29 11:02:28 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    09/07/29 11:02:28 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    09/07/29 11:02:28 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    09/07/29 11:02:28 at java.lang.Thread.run(Thread.java:595)
    09/07/29 11:02:28 Caused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.
    09/07/29 11:02:28 at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
    09/07/29 11:02:28 at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:341)
    09/07/29 11:02:28 at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
    09/07/29 11:02:28 at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:206)
    09/07/29 11:02:28 at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:77)
    09/07/29 11:02:28 ... 30 more
    [072909_110228862][][EXCEPTION] oracle.apps.xdo.webservice.wsclient.WSClientException: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
    at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1406)
    at oracle.apps.xdo.servlet.data.server.WebServiceCall.callComplexClient(WebServiceCall.java:179)
    at oracle.apps.xdo.servlet.data.server.WebServiceCall.doFetch(WebServiceCall.java:63)
    at oracle.apps.xdo.servlet.data.server.AbstractDataCall.execute(AbstractDataCall.java:63)
    at oracle.apps.xdo.servlet.data.bind.WebServiceBoundValue11.getValue(WebServiceBoundValue11.java:147)
    at oracle.apps.xdo.servlet.ReportContextImplV11.getReportXMLData(ReportContextImplV11.java:412)
    at oracle.apps.xdo.servlet.CoreProcessor.process(CoreProcessor.java:231)
    at oracle.apps.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.java:82)
    at oracle.apps.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:552)
    at oracle.apps.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.java:255)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:270)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:250)
    at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:178)
    at oracle.apps.xdo.servlet.XDOServlet.doPost(XDOServlet.java:201)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:94)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
    at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:103)
    at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:76)
    at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1429)
    at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1399)
    ... 27 more
    Caused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.
    at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:341)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:206)
    at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:77)
    ... 30 more
    [072909_110228878][][EXCEPTION] oracle.apps.xdo.webservice.wsclient.WSClientException: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
    at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1406)
    at oracle.apps.xdo.servlet.data.server.WebServiceCall.callComplexClient(WebServiceCall.java:179)
    at oracle.apps.xdo.servlet.data.server.WebServiceCall.doFetch(WebServiceCall.java:63)
    at oracle.apps.xdo.servlet.data.server.AbstractDataCall.execute(AbstractDataCall.java:63)
    at oracle.apps.xdo.servlet.data.bind.WebServiceBoundValue11.getValue(WebServiceBoundValue11.java:147)
    at oracle.apps.xdo.servlet.ReportContextImplV11.getReportXMLData(ReportContextImplV11.java:412)
    at oracle.apps.xdo.servlet.CoreProcessor.process(CoreProcessor.java:231)
    at oracle.apps.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.java:82)
    at oracle.apps.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:552)
    at oracle.apps.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.java:255)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:270)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:250)
    at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:178)
    at oracle.apps.xdo.servlet.XDOServlet.doPost(XDOServlet.java:201)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:94)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
    at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:103)
    at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:76)
    at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1429)
    at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1399)
    ... 27 moreCaused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.
    at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:341)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:206)
    at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:77)
    ... 30 more
    Here is my WSDL:
    <?xml version="1.0"?>
    <!-- root element wsdl:definitions defines set of related services -->
    <wsdl:definitions name="ZZ_BIP_XAI_ZF"
    targetNamespace="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"
    xmlns:xai="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"
    xmlns:xaixsd="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF.xsd"
    xmlns:schemans1="http://oracle.com/ZZ_BIP_XAI_ZF.xsd"
    xmlns:schemans2="http://oracle.com/ZZ_BIP_XAI_ZF.xsd"
    xmlns:ouaf="urn:oracle:ouaf"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <!-- wsdl:types encapsulates schema definitions of communication types;
    here using xsd -->
    <wsdl:types>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:oracle:ouaf" elementFormDefault="qualified">
    <xsd:element name="Fault">
    <xsd:complexType>
    <xsd:all>
    <xsd:element name="ResponseStatus" type="xsd:string"/>
    <xsd:element name="ResponseCode" type="xsd:int"/>
    <xsd:element name="ResponseText" type="xsd:string"/>
    <xsd:element name="ResponseData" minOccurs="0">
    <xsd:complexType>
    <xsd:attribute name="parm1" type="xsd:string"/>
    <xsd:attribute name="parm2" type="xsd:string"/>
    <xsd:attribute name="parm3" type="xsd:string"/>
    <xsd:attribute name="parm4" type="xsd:string"/>
    <xsd:attribute name="parm5" type="xsd:string"/>
    <xsd:attribute name="text" type="xsd:string"/>
    <xsd:attribute name="category" type="xsd:string"/>
    <xsd:attribute name="numParm" type="xsd:int"/>
    </xsd:complexType>
    </xsd:element>
    </xsd:all>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:oracle:ouaf" elementFormDefault="qualified">
    <xsd:simpleType name="money">
    <xsd:restriction base="xsd:decimal"/>
    </xsd:simpleType>
    </xsd:schema>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ouaf="urn:oracle:ouaf" targetNamespace="http://oracle.com/ZZ_BIP_XAI_ZF.xsd" elementFormDefault="qualified">
    <xsd:import namespace="urn:oracle:ouaf"/>
    <xsd:element name="ZZ_BIP_XAI_ZF">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="startDttm" type="xsd:dateTime" minOccurs="0"/>
    <xsd:element name="endDttm" type="xsd:dateTime" minOccurs="0"/>
    <xsd:element name="crew" minOccurs="0" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="crewId" type="xsd:string" minOccurs="0"/>
    <xsd:element name="crewName" type="xsd:string"/>
    <xsd:element name="task" minOccurs="0" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="crewId" type="xsd:string" minOccurs="0"/>
    <xsd:element name="taskId" type="xsd:string" minOccurs="0"/>
    <xsd:element name="taskName" type="xsd:string"/>
    <xsd:element name="status" type="xsd:string"/>
    <xsd:element name="startDttm" type="xsd:dateTime" minOccurs="0"/>
    <xsd:element name="endDttm" type="xsd:dateTime" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    <xsd:attribute name="dateTimeTagFormat" fixed="xsd" use="required"/>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    </wsdl:types>
    <!-- wsdl:message elements describe potential transactions -->
    <!-- request ZZ_BIP_XAI_ZFRequest is of type ZZ_BIP_XAI_ZF -->
    <wsdl:message name="ZZ_BIP_XAI_ZFRequest">
    <wsdl:part name="body" element="schemans1:ZZ_BIP_XAI_ZF"/>
    </wsdl:message>
    <!-- response ZZ_BIP_XAI_ZFResponse is of type ZZ_BIP_XAI_ZFResponse -->
    <wsdl:message name="ZZ_BIP_XAI_ZFResponse">
    <wsdl:part name="body" element="schemans2:ZZ_BIP_XAI_ZF"/>
    </wsdl:message>
    <!-- fault ZZ_BIP_XAI_ZFFault is of type ZZ_BIP_XAI_ZFFault -->
    <wsdl:message name="ZZ_BIP_XAI_ZFFault">
    <wsdl:part name="fault" element="ouaf:Fault"/>
    </wsdl:message>
    <!-- wsdl:portType describes messages in an operation -->
    <wsdl:portType name="ZZ_BIP_XAI_ZFPortType">
    <!-- the value of wsdl:operation eludes me -->
    <wsdl:operation name="ZZ_BIP_XAI_ZF">
    <wsdl:input message="xai:ZZ_BIP_XAI_ZFRequest"/>
    <wsdl:output message="xai:ZZ_BIP_XAI_ZFResponse"/>
    <wsdl:fault name="fault" message="xai:ZZ_BIP_XAI_ZFFault"/>
    </wsdl:operation>
    </wsdl:portType>
    <!-- wsdl:binding states a serialization protocol for this service -->
    <wsdl:binding name="ZZ_BIP_XAI_ZFSoapBinding"
    type="xai:ZZ_BIP_XAI_ZFPortType">
    <!-- leverage off soap:binding document style @@@(no wsdl:foo pointing at
    the soap binding) -->
    <soap:binding style="document"
    transport="http://schemas.xmlsoap.org/soap/http"/>
    <!-- semi-opaque container of network transport details classed by
    soap:binding above @@@ -->
    <wsdl:operation name="ZZ_BIP_XAI_ZF">
    <!-- again bind to SOAP? @@@ -->
    <soap:operation soapAction="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"/>
    <!-- furthur specify that the messages in the wsdl:operation
    "ZZ_BIP_XAI_ZF" use SOAP? @@@ -->
    <wsdl:input>
    <soap:body use="literal"
              namespace="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"
              namespace="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"/>
    </wsdl:output>
    <wsdl:fault name="fault">
    <soap:fault name="fault" use="literal"
              namespace="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"/>
    </wsdl:fault>
    </wsdl:operation>
    </wsdl:binding>
    <!-- wsdl:service names a new service "ZZ_BIP_XAI_ZFService" -->
    <wsdl:service name="ZZ_BIP_XAI_ZFService">
    <wsdl:documentation>ZZ_BIP_XAI_ZF version 3: Test XAI WS for BIP</wsdl:documentation>
    <!-- connect it to the binding "ZZ_BIP_XAI_ZFSoapBinding" above -->
    <wsdl:port name="ZZ_BIP_XAI_ZFPort"
    binding="xai:ZZ_BIP_XAI_ZFSoapBinding">
    <!-- give the binding an network address -->
    <soap:address location="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    Edited by: bperezg on Aug 12, 2009 2:49 PM
    Edited by: bperezg on Aug 12, 2009 2:56 PM

    Hello BI Publisher:
    The issue has been resolved. I found the cause the problem. The following line in my WSDL was preventing BI Publisher from reading the WSDL, which will return the "Error parsing envelope" message:
    <xsd:attribute name="dateTimeTagFormat" fixed="xsd" use="required"/>
    Once I removed the above line, BI Publisher was able to read the WSDL without any issues, and run the report.
    Benjamin
    Hello BI Publisher:
    I am trying to define a new dataset of type "Web Service", with a Complex Type configuration using WS-Security 2004. I get the following error when I try to "View" it:
    **"javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected."**
    This happens even if my Application Server (where the service is located) is not running, so I suspect that the error happens before the Publisher server tries to send the SOAP envevelop to the service server.
    Publisher Version: Release 10.1.3.4
    Complex Type: True
    Username: User1
    Password: ******
    Time Out: 60
    WSDL URL: http://localhost:4100/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF?WSDL
    Web Service: ZZ_BIP_XAI_ZFService
    Method: ZZ_BIP_XAI_ZF
    ResponseData XPath: <blank>
    Here is the Publisher server log in debug mode:
    [072909_110222553][][STATEMENT] Setting data definition:New DataSet 1 type:oracle.apps.xdo.servlet.data.bind.WebServiceBoundValue11
    [072909_110222569][][STATEMENT] Skip migration for cookie (ORA_XDO) is not found
    [072909_110228644][][STATEMENT] Skip migration for cookie (ORA_XDO) is not found
    [072909_110228690][][STATEMENT] WebServiceBoundValue11::getValue m_xpath =
    [072909_110228690][][STATEMENT] WSS Parameter = 2004
    09/07/29 11:02:28 WebServiceCall::callComplexClient SOAP Message = null
    [072909_110228706][][STATEMENT] SOAP Response XPATH =
    [072909_110228706][][STATEMENT] http://localhost.us.oracle.com:4100/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF?WSDL
    [072909_110228706][][STATEMENT] ZZ_BIP_XAI_ZF
    [072909_110228706][][STATEMENT] null
    09/07/29 11:02:28 WebServiceCall::callComplexClient WS-Security Enabled - uid [SPLBPG], pwd [splbpg00], spec-2004 [true]
    09/07/29 11:02:28 javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
    09/07/29 11:02:28 at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:103)
    09/07/29 11:02:28 at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:76)
    09/07/29 11:02:28 at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1429)
    09/07/29 11:02:28 at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1399)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.data.server.WebServiceCall.callComplexClient(WebServiceCall.java:179)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.data.server.WebServiceCall.doFetch(WebServiceCall.java:63)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.data.server.AbstractDataCall.execute(AbstractDataCall.java:63)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.data.bind.WebServiceBoundValue11.getValue(WebServiceBoundValue11.java:147)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.ReportContextImplV11.getReportXMLData(ReportContextImplV11.java:412)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.CoreProcessor.process(CoreProcessor.java:231)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.java:82)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:552)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.java:255)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:270)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:250)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:178)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.XDOServlet.doPost(XDOServlet.java:201)
    09/07/29 11:02:28 at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    09/07/29 11:02:28 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    09/07/29 11:02:28 at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:94)
    09/07/29 11:02:28 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    09/07/29 11:02:28 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    09/07/29 11:02:28 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    09/07/29 11:02:28 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    09/07/29 11:02:28 at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    09/07/29 11:02:28 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    09/07/29 11:02:28 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    09/07/29 11:02:28 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    09/07/29 11:02:28 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    09/07/29 11:02:28 at java.lang.Thread.run(Thread.java:595)
    09/07/29 11:02:28 Caused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.
    09/07/29 11:02:28 at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
    09/07/29 11:02:28 at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:341)
    09/07/29 11:02:28 at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
    09/07/29 11:02:28 at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:206)
    09/07/29 11:02:28 at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:77)
    09/07/29 11:02:28 ... 30 more
    [072909_110228862][][EXCEPTION] oracle.apps.xdo.webservice.wsclient.WSClientException: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
    at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1406)
    at oracle.apps.xdo.servlet.data.server.WebServiceCall.callComplexClient(WebServiceCall.java:179)
    at oracle.apps.xdo.servlet.data.server.WebServiceCall.doFetch(WebServiceCall.java:63)
    at oracle.apps.xdo.servlet.data.server.AbstractDataCall.execute(AbstractDataCall.java:63)
    at oracle.apps.xdo.servlet.data.bind.WebServiceBoundValue11.getValue(WebServiceBoundValue11.java:147)
    at oracle.apps.xdo.servlet.ReportContextImplV11.getReportXMLData(ReportContextImplV11.java:412)
    at oracle.apps.xdo.servlet.CoreProcessor.process(CoreProcessor.java:231)
    at oracle.apps.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.java:82)
    at oracle.apps.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:552)
    at oracle.apps.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.java:255)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:270)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:250)
    at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:178)
    at oracle.apps.xdo.servlet.XDOServlet.doPost(XDOServlet.java:201)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:94)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
    at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:103)
    at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:76)
    at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1429)
    at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1399)
    ... 27 more
    Caused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.
    at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:341)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:206)
    at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:77)
    ... 30 more
    [072909_110228878][][EXCEPTION] oracle.apps.xdo.webservice.wsclient.WSClientException: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
    at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1406)
    at oracle.apps.xdo.servlet.data.server.WebServiceCall.callComplexClient(WebServiceCall.java:179)
    at oracle.apps.xdo.servlet.data.server.WebServiceCall.doFetch(WebServiceCall.java:63)
    at oracle.apps.xdo.servlet.data.server.AbstractDataCall.execute(AbstractDataCall.java:63)
    at oracle.apps.xdo.servlet.data.bind.WebServiceBoundValue11.getValue(WebServiceBoundValue11.java:147)
    at oracle.apps.xdo.servlet.ReportContextImplV11.getReportXMLData(ReportContextImplV11.java:412)
    at oracle.apps.xdo.servlet.CoreProcessor.process(CoreProcessor.java:231)
    at oracle.apps.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.java:82)
    at oracle.apps.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:552)
    at oracle.apps.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.java:255)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:270)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:250)
    at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:178)
    at oracle.apps.xdo.servlet.XDOServlet.doPost(XDOServlet.java:201)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:94)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
    at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:103)
    at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:76)
    at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1429)
    at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1399)
    ... 27 moreCaused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.
    at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:341)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:206)
    at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:77)
    ... 30 more
    Here is my WSDL:
    <?xml version="1.0"?>
    <!-- root element wsdl:definitions defines set of related services -->
    <wsdl:definitions name="ZZ_BIP_XAI_ZF"
    targetNamespace="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"
    xmlns:xai="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"
    xmlns:xaixsd="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF.xsd"
    xmlns:schemans1="http://oracle.com/ZZ_BIP_XAI_ZF.xsd"
    xmlns:schemans2="http://oracle.com/ZZ_BIP_XAI_ZF.xsd"
    xmlns:ouaf="urn:oracle:ouaf"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <!-- wsdl:types encapsulates schema definitions of communication types;
    here using xsd -->
    <wsdl:types>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:oracle:ouaf" elementFormDefault="qualified">
    <xsd:element name="Fault">
    <xsd:complexType>
    <xsd:all>
    <xsd:element name="ResponseStatus" type="xsd:string"/>
    <xsd:element name="ResponseCode" type="xsd:int"/>
    <xsd:element name="ResponseText" type="xsd:string"/>
    <xsd:element name="ResponseData" minOccurs="0">
    <xsd:complexType>
    <xsd:attribute name="parm1" type="xsd:string"/>
    <xsd:attribute name="parm2" type="xsd:string"/>
    <xsd:attribute name="parm3" type="xsd:string"/>
    <xsd:attribute name="parm4" type="xsd:string"/>
    <xsd:attribute name="parm5" type="xsd:string"/>
    <xsd:attribute name="text" type="xsd:string"/>
    <xsd:attribute name="category" type="xsd:string"/>
    <xsd:attribute name="numParm" type="xsd:int"/>
    </xsd:complexType>
    </xsd:element>
    </xsd:all>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:oracle:ouaf" elementFormDefault="qualified">
    <xsd:simpleType name="money">
    <xsd:restriction base="xsd:decimal"/>
    </xsd:simpleType>
    </xsd:schema>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ouaf="urn:oracle:ouaf" targetNamespace="http://oracle.com/ZZ_BIP_XAI_ZF.xsd" elementFormDefault="qualified">
    <xsd:import namespace="urn:oracle:ouaf"/>
    <xsd:element name="ZZ_BIP_XAI_ZF">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="startDttm" type="xsd:dateTime" minOccurs="0"/>
    <xsd:element name="endDttm" type="xsd:dateTime" minOccurs="0"/>
    <xsd:element name="crew" minOccurs="0" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="crewId" type="xsd:string" minOccurs="0"/>
    <xsd:element name="crewName" type="xsd:string"/>
    <xsd:element name="task" minOccurs="0" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="crewId" type="xsd:string" minOccurs="0"/>
    <xsd:element name="taskId" type="xsd:string" minOccurs="0"/>
    <xsd:element name="taskName" type="xsd:string"/>
    <xsd:element name="status" type="xsd:string"/>
    <xsd:element name="startDttm" type="xsd:dateTime" minOccurs="0"/>
    <xsd:element name="endDttm" type="xsd:dateTime" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    <xsd:attribute name="dateTimeTagFormat" fixed="xsd" use="required"/>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    </wsdl:types>
    <!-- wsdl:message elements describe potential transactions -->
    <!-- request ZZ_BIP_XAI_ZFRequest is of type ZZ_BIP_XAI_ZF -->
    <wsdl:message name="ZZ_BIP_XAI_ZFRequest">
    <wsdl:part name="body" element="schemans1:ZZ_BIP_XAI_ZF"/>
    </wsdl:message>
    <!-- response ZZ_BIP_XAI_ZFResponse is of type ZZ_BIP_XAI_ZFResponse -->
    <wsdl:message name="ZZ_BIP_XAI_ZFResponse">
    <wsdl:part name="body" element="schemans2:ZZ_BIP_XAI_ZF"/>
    </wsdl:message>
    <!-- fault ZZ_BIP_XAI_ZFFault is of type ZZ_BIP_XAI_ZFFault -->
    <wsdl:message name="ZZ_BIP_XAI_ZFFault">
    <wsdl:part name="fault" element="ouaf:Fault"/>
    </wsdl:message>
    <!-- wsdl:portType describes messages in an operation -->
    <wsdl:portType name="ZZ_BIP_XAI_ZFPortType">
    <!-- the value of wsdl:operation eludes me -->
    <wsdl:operation name="ZZ_BIP_XAI_ZF">
    <wsdl:input message="xai:ZZ_BIP_XAI_ZFRequest"/>
    <wsdl:output message="xai:ZZ_BIP_XAI_ZFResponse"/>
    <wsdl:fault name="fault" message="xai:ZZ_BIP_XAI_ZFFault"/>
    </wsdl:operation>
    </wsdl:portType>
    <!-- wsdl:binding states a serialization protocol for this service -->
    <wsdl:binding name="ZZ_BIP_XAI_ZFSoapBinding"
    type="xai:ZZ_BIP_XAI_ZFPortType">
    <!-- leverage off soap:binding document style @@@(no wsdl:foo pointing at
    the soap binding) -->
    <soap:binding style="document"
    transport="http://schemas.xmlsoap.org/soap/http"/>
    <!-- semi-opaque container of network transport details classed by
    soap:binding above @@@ -->
    <wsdl:operation name="ZZ_BIP_XAI_ZF">
    <!-- again bind to SOAP? @@@ -->
    <soap:operation soapAction="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"/>
    <!-- furthur specify that the messages in the wsdl:operation
    "ZZ_BIP_XAI_ZF" use SOAP? @@@ -->
    <wsdl:input>
    <soap:body use="literal"
              namespace="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"
              namespace="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"/>
    </wsdl:output>
    <wsdl:fault name="fault">
    <soap:fault name="fault" use="literal"
              namespace="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"/>
    </wsdl:fault>
    </wsdl:operation>
    </wsdl:binding>
    <!-- wsdl:service names a new service "ZZ_BIP_XAI_ZFService" -->
    <wsdl:service name="ZZ_BIP_XAI_ZFService">
    <wsdl:documentation>ZZ_BIP_XAI_ZF version 3: Test XAI WS for BIP</wsdl:documentation>
    <!-- connect it to the binding "ZZ_BIP_XAI_ZFSoapBinding" above -->
    <wsdl:port name="ZZ_BIP_XAI_ZFPort"
    binding="xai:ZZ_BIP_XAI_ZFSoapBinding">
    <!-- give the binding an network address -->
    <soap:address location="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    Edited by: bperezg on Aug 12, 2009 2:49 PM
    Edited by: bperezg on Aug 12, 2009 2:56 PM

Maybe you are looking for