[JBossWS] - Newlines/spaces in SOAPMessage
by alfred.rsa
Hi guys
I have code that works when I call it from a stand-alone application, but when I call it from within JBoss, I get a NPE from the Web service I am calling.
The problem seems to be newline or space characters between the XML tags of the SOAP message. When I use the stand-alone code I get the following output from SOAPMessage().writeTo(System.out)
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><searchDocDataRequest><f_nr>test_fno</f_nr><userid>cnt_usr</userid><items><cheque format="tiff"><account_nr>62001869538</account_nr></cheque></items></searchDocDataRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>
|
>From within JBoss I get:
| 13:41:03,491 INFO [STDOUT] <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Body><searchDocDataRequest><f_nr>test_fno
| 13:41:03,491 INFO [STDOUT] </f_nr>
| 13:41:03,491 INFO [STDOUT] <userid>cnt_usr
| 13:41:03,491 INFO [STDOUT] </userid>
| 13:41:03,507 INFO [STDOUT] <items><cheque format='tiff'><account_nr>62001869538
| 13:41:03,507 INFO [STDOUT] </account_nr>
| 13:41:03,507 INFO [STDOUT] </cheque>
| 13:41:03,507 INFO [STDOUT] </items>
| 13:41:03,523 INFO [STDOUT] </searchDocDataRequest>
| 13:41:03,523 INFO [STDOUT] </env:Body></env:Envelope>
The only difference being the prefix and the newline/space.
Does anybody have any idea on how I can remove this?
Reards
Alfred
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241183#4241183
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241183
16 years, 9 months
[JBoss jBPM] - Re: Indentityservice- Jbpm4
by nilspreusker
Here is my current (working) jbpm.cfg.xml:
<?xml version="1.0" encoding="UTF-8"?>
|
| <jbpm-configuration>
| <import resource="jbpm.jpdl.cfg.xml" />
| <!--<import resource="jbpm.identity.cfg.xml" /> -->
| <process-engine-context>
| <repository-service />
| <repository-cache />
| <execution-service />
| <history-service />
| <management-service />
| <identity-service />
| <task-service />
| <script-manager default-expression-language="juel"
| default-script-language="juel"
| read-contexts="execution, environment, process-engine, spring"
| write-context="">
| <script-language name="juel" factory="org.jbpm.pvm.internal.script.JuelScriptEngineFactory" />
| </script-manager>
| <authentication />
| <id-generator />
| <types resource="jbpm.variable.types.xml" />
| <address-resolver />
| <business-calendar>
| <monday hours="9:00-12:00 and 12:30-17:00"/>
| <tuesday hours="9:00-12:00 and 12:30-17:00"/>
| <wednesday hours="9:00-12:00 and 12:30-17:00"/>
| <thursday hours="9:00-12:00 and 12:30-17:00"/>
| <friday hours="9:00-12:00 and 12:30-17:00"/>
| <holiday period="01/07/2008 - 31/08/2008"/>
| </business-calendar>
| <mail-template name='task-notification'>
| <to users="${task.assignee}"/>
| <subject>${task.name}</subject>
| <text><![CDATA[Hi ${task.assignee},
| Task "${task.name}" has been assigned to you.
| ${task.description}
|
| Sent by JBoss jBPM
| ]]></text>
| </mail-template>
| <mail-template name='task-reminder'>
| <to users="${task.assignee}"/>
| <subject>${task.name}</subject>
| <text><![CDATA[Hey ${task.assignee},
| Do not forget about task "${task.name}".
| ${task.description}
|
| Sent by JBoss jBPM
| ]]></text>
| </mail-template>
| <command-service>
| <retry-interceptor />
| <environment-interceptor />
| <spring-transaction-interceptor current="false" />
| </command-service>
| </process-engine-context>
|
| <transaction-context>
| <object class="mypackage.IdentitySessionImpl" />
| <repository-session />
| <db-session />
| <message-session />
| <timer-session />
| <history-session />
| <mail-session>
| <mail-server>
| <session-properties resource="jbpm.mail.properties" />
| </mail-server>
| </mail-session>
| <hibernate-session current="true"/>
|
| </transaction-context>
| </jbpm-configuration>
Except of course the "mypackage" part... I'm working with spring (using org.jbpm.pvm.internal.cfg.SpringConfiguration) and against the jBPM trunk, currently at revision 5153. Hope this helps!
Nils
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241179#4241179
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241179
16 years, 9 months