[Fusionforge-general] WRONG_DOCUMENT_ERR when an error occurs

pasquale vitale pasquale_vitale at hotmail.com
Tue Jul 5 18:53:38 CEST 2011


Hi all,
I have resolved this problem. 
The element <detail> of <SOAP-ENV:Fault> must contain an xml element or elements: for example:

<detail><faultdetail>Invalid Password Or User Name</faultdetail></detail>

and not:

<detail>Invalid Password Or User Name</detail>


In the nusoap.php file (the serialize() function at line 1043 returns a soap fault) I have replaced the line 1056:

$this->serialize_val($this->faultdetail, 'detail').

with this code:

'<detail>'.
$this->serialize_val($this->faultdetail, 'detail').
'</detail>'.

I don't know php very well, and I ask you if this solution is right?

Thanks
pasquy73

From: pasquale_vitale at hotmail.com
To: fusionforge-general at lists.fusionforge.org
Date: Tue, 5 Jul 2011 11:49:57 +0200
Subject: [Fusionforge-general] WRONG_DOCUMENT_ERR when an error occurs








Hi all,

I'm just using the wsdl of my local forge to create my Java API client because I want to use Java with forge.
I have used Axis 1.4 to generate Java proxy class for a web service - all in eclipse.

When I use my Java Api client, for example login (to get the session_ser) and I type a wrong username or password I get this error:

nested exception is: org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR: A node is used in a different document than the one that created it.

while in the TCP monitor I have this soap fault:

     <SOAP-ENV:Body>
         <SOAP-ENV:Fault>
            <faultcode xsi:type="xsd:string">1001</faultcode>
            <faultactor xsi:type="xsd:string">user</faultactor>
            <faultstring xsi:type="xsd:string">Unable to log in with userid of pasquy73</faultstring>
            <detail xsi:type="xsd:string">Invalid Password Or User Name</detail>
         </SOAP-ENV:Fault>
      </SOAP-ENV:Body>

How can I get a faultstring or detail from soap message instead of WRONG_DOCUMENT_ERR?

Can you help me?

best regards
pasquy73
 		 	   		  

_______________________________________________
Fusionforge-general mailing list
Fusionforge-general at lists.fusionforge.org
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-general 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fusionforge.org/pipermail/fusionforge-general/attachments/20110705/ad60ca84/attachment.html>


More information about the Fusionforge-general mailing list