FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Problem with webservice call: org.xml.sax.SAXException
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Problem with webservice call: org.xml.sax.SAXException [message #180130 is a reply to message #180126] Thu, 10 January 2013 20:39 Go to previous messageGo to previous message
Jens Riedel is currently offline  Jens Riedel
Messages: 4
Registered: January 2013
Karma:
Junior Member
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:

the XML of my SOAP request:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns4="KreditkartenzahlungWS"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns4:validierenKreditkarte>
<mandantNr xsi:type="xsd:string">12345678</mandantNr>
<kreditkarte>
<OBJTypeNS>
<namespace xsi:type="xsd:string">http://www.bff.bund.de/ePayment</namespace>
<type xsi:type="xsd:string">Kreditkarte</type></OBJTypeNS>
<karteninhaber xsi:type="xsd:string">Testname</karteninhaber>
<kreditkartenNr xsi:type="xsd:string">242342424234</kreditkartenNr>
<gueltigkeit xsi:type="xsd:string">01012050</gueltigkeit>
<kartenpruefnummer
xsi:type="xsd:string">666</kartenpruefnummer></kreditkarte>
<waehrungskennzeichen
xsi:type="xsd:string">EUR</waehrungskennzeichen></ns4:validierenKreditkarte >
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


the following XML is returned from the server:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<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))
at
org.apache.axis.encoding.DeserializationContext.startElement(Deserializatio nContext.java(Compiled
Code))
at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java(Com piled
Code))
at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java (Inlined
Compiled Code))
at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java(Compiled
Code))
at org.apache.axis.message.RPCElement.getParams(RPCElement.java(Inlined
Compiled Code))
at
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java( Compiled
Code))
at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java(Compil ed
Code))
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java (Compiled
Code))
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java(Compiled Code))
at org.apache.axis.SimpleChain.invoke(SimpleChain.java(Compiled Code))
at
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java(Compiled
Code))
at org.apache.axis.server.AxisServer.invoke(AxisServer.java(Compiled Code))
at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java(Compiled
Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java (Compiled
Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio nFilterChain.java(Compiled
Code))
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC hain.java(Compiled
Code))
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j ava(Compiled
Code))
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte xt.java(Compiled
Code))
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Comp iled
Code))
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContex tValve.java(Compiled
Code))
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j ava(Compiled
Code))
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte xt.java(Compiled
Code))
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Comp iled
Code))
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java(Co mpiled
Code))
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte xt.java(Compiled
Code))
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java(Co mpiled
Code))
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte xt.java(Compiled
Code))
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java(Compil ed
Code))
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte xt.java(Compiled
Code))
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Comp iled
Code))
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav a(Compiled
Code))
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte xt.java(Compiled
Code))
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Comp iled
Code))
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java(Compiled Code))
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java(Compiled
Code))
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java(Compiled Code))
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java(Compiled
Code))
at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java(Compiled Code))
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java(Com piled
Code))
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja va:684)
at java.lang.Thread.run(Thread.java:571)
</ns1:stackTrace>
<ns2:hostname
xmlns:ns2="http://xml.apache.org/axis/">lxepyint</ns2:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>



> But before you get off too far on this, the PEAR package is pretty much
> defunct. The SOAP functions are now included in the base PHP code. You
> should be using them instead.

The problem is that the customer wants a solution with the least
migration effort and the webservice functionality with the PEAR SOAP lib
is used in a lot of places in the source code... but maybe it will be
cheaper in the long run to replace it with the PHP5 SOAP functions...

Kind regards
Jens
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: QR Code>/phpqrcode/qrlib.php
Next Topic: PHP Opening!!
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 01:13:37 GMT 2024

Total time taken to generate the page: 0.03872 seconds