You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Noam Paz <no...@db.com> on 2007/03/07 15:51:35 UTC

SOAPException: faultCode=Could not create document - additional info

Hello ,
here is a piece of information that was missing in the previous mail:

the request that was tested is actually a manually processed one.
The original yielded the same exception
[SOAPException: faultCode=Could not create document; msg=]

but the entries in jmeter.log were different:

2007/03/07 15:44:59 WARN  - jmeter.protocol.http.sampler.WebServiceSampler: Error processing data: The processing instruction target matching "[xX][mM][lL]" is not allowed.
2007/03/07 15:44:59 WARN  - jmeter.protocol.http.sampler.WebServiceSampler: [SOAPException: faultCode=Could not create document; msg=]

Here is the original request:

<env:Envelope  xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 <env:Header>
 </env:Header>
 <env:Body   env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  <m:execute    xmlns:m="http://mcbs.eur.deuba.com/service/ServiceRouter">
   <string     xsi:type="xsd:string"><?xml version="1.0"  encoding="ISO-8859-1"?> <!DOCTYPE Envelope SYSTEM "Envelope.dtd"><Envelope> <Version>1</Version> <Sender><ApplicationId>HtmlClient</ApplicationId></Sender> <Receiver><ApplicationId>FrontendService</ApplicationId></Receiver> <Content> <![CDATA[ <?xml version="1.0"  encoding="ISO-8859-1"?> <!DOCTYPE OrderAmountRequest SYSTEM "DTD/OrderAmountRequest.dtd"> <OrderAmountRequest reduce="1"> <Header> <EntityId>DBK</EntityId> <Application>20</Application> <Version>328</Version> </Header> <Order  type="1"> <Portfolio> <Id>615208592633</Id> </Portfolio> <SecAccount> <Id>615208592633</Id> </SecAccount> <Security> <Id>710000</Id> </Security> <Quantity>1</Quantity> <TradeType>A</TradeType> </Order> </OrderAmountRequest> ]]>  </Content> </Envelope></string>
  </m:execute>
 </env:Body>
</env:Envelope>


The processing was to pass the XML string as CDATA, but this failed (as I said in the oroginal post).

Any ideas how to turn the request into one that JMeter can process?
Thanks!




Best regards / Viele Grüße


Noam Paz
______________________________________


Hello ,
while trying to test a webservice we run into the following error message:


Thread Name: ThreadGroup 1-1
Sample Start: Thu Jan 01 01:00:00 CET 1970
Load time: 0
HTTP response code: 000
HTTP response message: [SOAPException: faultCode=Could not create document; msg=]

HTTP response headers:



jmeter.log  reveals following info:
2007/03/07 11:11:58 WARN  - jmeter.protocol.http.sampler.WebServiceSampler: Error processing data: The element type "string" must be terminated by the matching end-tag "</string>".
2007/03/07 11:11:58 WARN  - jmeter.protocol.http.sampler.WebServiceSampler: [SOAPException: faultCode=Could not create document; msg=]




This is the request we try to send:

<env:Envelope  xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 <env:Header>
 </env:Header>
 <env:Body   env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  <m:execute    xmlns:m="http://mcbs.eur.deuba.com/service/ServiceRouter">
         <string     xsi:type="xsd:string">
                  <![CDATA[
                        <?xml version="1.0"  encoding="ISO-8859-1"?>
                        <!DOCTYPE Envelope SYSTEM "Envelope.dtd">
                        <Envelope>
                              <Version>1</Version>
                              <Sender>
                                    <ApplicationId>HtmlClient</ApplicationId>
                              </Sender>
                              <Receiver>
                                    <ApplicationId>FrontendService</ApplicationId>
                              </Receiver>
                              <Content>
                                    <![CDATA[
                                          <?xml version="1.0"  encoding="ISO-8859-1"?>
                                          <!DOCTYPE OrderAmountRequest SYSTEM "DTD/OrderAmountRequest.dtd">
                                          <OrderAmountRequest reduce="1">
                                                <Header>
                                                      <EntityId>DBK</EntityId>
                                                      <Application>20</Application>
                                                      <Version>328</Version>
                                                </Header>
                                                <Order  type="1">
                                                      <Portfolio>
                                                            <Id>615208592633</Id>
                                                      </Portfolio>
                                                      <SecAccount> <Id>615208592633</Id> </SecAccount>
                                                      <Security> <Id>710000</Id> </Security>
                                                      <Quantity>1</Quantity>
                                                      <TradeType>A</TradeType>
                                                </Order>
                                          </OrderAmountRequest>
                                    ]]>
                              </Content>
                        </Envelope>
                  ]]>
            </string>
  </m:execute>
 </env:Body>
</env:Envelope>




We are using JMeter 2.2.


Any idea what might went wrong?
Thanks!


Best regards / Viele Grüße


Noam Paz



--

Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org