Basically I am sending the below xml as string in my response soap message:
---------------------------------------------------------------------------------------------------
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE H2HOutput [
<!ELEMENT H2HOutput (BatchResponse?, BatchStream?)>
<!ELEMENT BatchResponse (Message, BatchId?)>
<!ELEMENT BatchStream (Header,DetailOrders,Trailer)>
<!ELEMENT Header (SubmissionDate?, SubmissionTime?, BatchId?, DataRecordCount)>
<!ELEMENT BatchId (#PCDATA)>
<!ELEMENT DataRecordCount (#PCDATA)>
<!ELEMENT DetailOrders (#PCDATA)>
<!ELEMENT Message (#PCDATA)>
<!ELEMENT SubmissionDate (#PCDATA)>
<!ELEMENT SubmissionTime (#PCDATA)>
<!ELEMENT Trailer (#PCDATA)>
]>
<H2HOutput>
<BatchResponse>
<Message>Changed Disposition Status Successfully Generated</Message>
</BatchResponse>
<BatchStream>
<Header>
<SubmissionDate></SubmissionDate>
<SubmissionTime></SubmissionTime>
<BatchId></BatchId>
<DataRecordCount>1</DataRecordCount>
</Header>
<DetailOrders><![CDATA[D0S0 0CP3899 0 02
0N0000000 0N0 0 00000 000000000000
0
000000000000N0 00N0 00N0
00N0
00P0 0 0 0 0 0 0 0
0 0 0
0 0 0 0 0 0 0
0 0 0
0000000000000 0000000000000
00000000000000000000000000000000000000000000000000000000000100000
000000099990 000000000000000000000000000200030295
S00000000000010N0000000000002 0
0 0 0 0 0 0000000
02046762610 002950
00010A0Z0 0 0 0 0 000 0000
D0Y00210000210076081812465 0N0
000 0
F97010D9B79244FA8C
2282506B043DE605270750 EN020 0 0 0 0 0
4108500067
0100
]]></DetailOrders>
<Trailer></Trailer>
</BatchStream>
</H2HOutput>
---------------------------------------------------------------------------------------------------
Now, the error I get from AXIS 1.2.1 provider is below :
java.lang.IllegalArgumentException: The char '0x0' in
'java.lang.IllegalArgumentException: The char
'0x0' in '<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE H2HOutput [
<!ELEMENT H2HOutput (BatchResponse?, BatchStream?)>
<!ELEMENT BatchResponse (Message, BatchId?)>
<!ELEMENT BatchStream (Header,DetailOrders,Trailer)>
<!ELEMENT Header (SubmissionDate?, SubmissionTime?, BatchId?, DataRecordCount)>
<!ELEMENT BatchId (#PCDATA)>
<!ELEMENT DataRecordCount (#PCDATA)>
<!ELEMENT DetailOrders (#PCDATA)>
<!ELEMENT Message (#PCDATA)>
<!ELEMENT SubmissionDate (#PCDATA)>
<!ELEMENT SubmissionTime (#PCDATA)>
<!ELEMENT Trailer (#PCDATA)>
]>
<H2HOutput>
<BatchResponse>
<Message>Changed Disposition Status Successfully Generated</Message>
</BatchResponse>
<BatchStream>
<Header>
<SubmissionDate></SubmissionDate>
<SubmissionTime></SubmissionTime>
<BatchId></BatchId>
<DataRecordCount>1</DataRecordCount>
</Header>
<DetailOrders><![CDATA[D0S0 0CP3899 0 02
0N0000000 0N0 0 00000 000000000000
0
000000000000N0 00N0 00N0
00N0
00P0 0 0 0 0 0 0 0
0 0 0
0 0 0 0 0 0 0
0 0 0
0000000000000 0000000000000
00000000000000000000000000000000000000000000000000000000000100000
000000099990 000000000000000000000000000200030295
S00000000000010N0000000000002 0
0 0 0 0 0 0000000
02046762610 002950
00010A0Z0 0 0 0 0 000 0000
D0Y00210000210076081812465 0N0
000 0
F97010D9B79244FA8C
2282506B043DE605270750 EN020 0 0 0 0 0
4108500067
0100
]]></DetailOrders>
<Trailer></Trailer>
</BatchStream>
</H2HOutput>
' is not a valid XML character.' is not a valid XML character.
at
org.apache.axis.components.encoding.UTF8Encoder.writeEncoded(UTF8Encoder.java(Compiled
Co
de))
at
org.apache.axis.encoding.SerializationContext.writeSafeString(SerializationContext.java(C
ompiled Code))
at org.apache.axis.message.SOAPFault.outputImpl(SOAPFault.java:123)
at
org.apache.axis.message.MessageElement.output(MessageElement.java(Compiled
Code))
at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java(Compiled
Code))
at
org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java(Compiled
Code))
at
org.apache.axis.message.MessageElement.output(MessageElement.java(Compiled
Code))
at org.apache.axis.AxisFault.output(AxisFault.java:755)
at org.apache.axis.SOAPPart.writeTo(SOAPPart.java(Compiled Code))
at org.apache.axis.SOAPPart.writeTo(SOAPPart.java(Compiled Code))
at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java(Compiled Code))
at
org.apache.axis.attachments.AttachmentsImpl.getAttachmentCount(AttachmentsImpl.java(Compi
led Code))
at org.apache.axis.Message.getContentType(Message.java:475)
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:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled
Code))
at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.jav
a(Compiled Code))
at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.ja
va(Compiled Code))
at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java(Comp
iled Code))
at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.jav
a(Inlined Compiled Code))
at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled
Cod
e))
at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReference
State.java(Compiled Code))
at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReferenc
e.java(Inlined Compiled Code))
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequest
Dispatcher.java(Compiled Code))
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.j
ava(Compiled Code))
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.ja
va(Compiled Code))
at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java(Compiled
Code))
at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java(Compile
d Code))
at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocati
on.java(Compiled Code))
at
com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvoc
ationContext.java(Compiled Code))
at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor
.java(Compiled Code))
at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java(Compil
ed Code))
at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java(Compiled
Co
de))
at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java(Compiled
Code))
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java(Compiled
Code))
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
If I see the implementation of
org.apache.axis.components.encoding.UTF8Encoder.writeEncoded method
then I dont single quotes in string (i.e in my case it is single quote
in my xml) is not taken care of and this is the cause of the problem I
am getting.
Can anyone throw more light on this problem ?
Thank you for your time and reply.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]