Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #8090

Re: Problem with webservice call: org.xml.sax.SAXException

Message-ID <6075625.6Tvt2XQRez@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2013-01-16 15:12 +0100
Subject Re: Problem with webservice call: org.xml.sax.SAXException
Newsgroups comp.lang.php
References <al7gmeFeev9U1@mid.individual.net> <kcmr5c$hqc$1@dont-email.me> <al8n7iFn9deU1@mid.individual.net>
Followup-To comp.lang.php

Followups directed to: comp.lang.php

Show all headers | View raw


Jens Riedel wrote:

> Am 10.01.2013 17:44, schrieb Jerry Stuckle:
>> Impossible to tell from the information given.  You didn't show your
>> SOAP calls, the class you're trying to instantiate or the XML being
>> returned by the server.
> 
> Here is some more information:

Which shows that, so far, you do not have a PHP problem:
 
> the XML of my SOAP request:
> 
> […]
> <OBJTypeNS>
> <namespace
> xsi:type="xsd:string">http://www.bff.bund.de/ePayment</namespace> <type
> xsi:type="xsd:string">Kreditkarte</type></OBJTypeNS> […]
> 
> the following XML is returned from the server:
> 
> […]
>     <faultcode>soapenv:Server.userException</faultcode>
>     <faultstring>org.xml.sax.SAXException: Invalid element in
> de.bund.bff.epayment.webservice.bean.KreditkarteBean -
> OBJTypeNS</faultstring>
>     <detail>
>      <ns1:stackTrace
> xmlns:ns1="http://xml.apache.org/axis/">org.xml.sax.SAXException:
> Invalid element in de.bund.bff.epayment.webservice.bean.KreditkarteBean
> - OBJTypeNS
> at
> 
org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java(Compiled
> Code))
> […]

You have an XML/SOAP or a Java problem.  Your SOAP request message contains 
an “OBJTypeNS” element that is either not recognized, or not allowed in this 
context.  If it is not recognized, then the Java code is at fault.  If it is 
not allowed (there), the XML/SOAP request message is at fault.  The reason 
of the latter would be that in some way you were at fault.

The problem is that unless you see the problem in your code, it is 
impossible to tell with a sufficiently high probability for correctness what 
could be the problem as you are still not posting the *relevant* (*PHP*) 
code (that which generates the SOAP request message and issues the request 
in the first place).

This is not a game where your readers would (like to) guess what you might 
have done wrong.

-- 
PointedEars

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Problem with webservice call: org.xml.sax.SAXException Jens Riedel <jensrie@gmx.de> - 2013-01-10 10:41 +0100
  Re: Problem with webservice call: org.xml.sax.SAXException "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-01-10 11:25 +0100
  Re: Problem with webservice call: org.xml.sax.SAXException Jerry Stuckle <jstucklex@attglobal.net> - 2013-01-10 11:44 -0500
    Re: Problem with webservice call: org.xml.sax.SAXException Jens Riedel <jensrie@gmx.de> - 2013-01-10 21:39 +0100
      Re: Problem with webservice call: org.xml.sax.SAXException Jerry Stuckle <jstucklex@attglobal.net> - 2013-01-10 18:09 -0500
      Re: Problem with webservice call: org.xml.sax.SAXException Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-01-16 15:12 +0100
        Re: Problem with webservice call: org.xml.sax.SAXException Jens Riedel <jensrie@gmx.de> - 2013-01-16 17:24 +0100
          Re: Problem with webservice call: org.xml.sax.SAXException Jerry Stuckle <jstucklex@attglobal.net> - 2013-01-16 12:56 -0500
            Re: Problem with webservice call: org.xml.sax.SAXException Jens Riedel <jensrie@gmx.de> - 2013-01-16 22:08 +0100

csiph-web