Hi Hiranya,

Aaaarrrrggghhhh!! so simple!!
I tried this myself last week, but then used "&Amp;" (capital "A")
and Synapse still issued error messages (which I oversaw as being
different - and more informative - than the original error messages
when I used simply "&").

Now I used "&" as you suggested, and it works!!

Thanks a lot!
Peter
-----Original Message-----
From: Hiranya Jayathilaka [mailto:[email protected]] 
Sent: Freitag, 29. Juni 2012 12:45
To: [email protected]; [email protected]
Subject: Re: Unexpected character '=' when using a SOAP address endpoint

You can't have '&' character as it is in a XML document. It needs to be
encoded as "&"

Thanks,
Hiranya

On Fri, Jun 29, 2012 at 12:28 PM, <[email protected]> wrote:

>
> Sent using BlackBerry(r) from Orange
>
> -----Original Message-----
> From: "Wright, Peter" <[email protected]>
> Date: Fri, 29 Jun 2012 08:41:44
> To: [email protected]<[email protected]>
> Reply-To: [email protected]
> Subject: Unexpected character '=' when using a SOAP address endpoint
>
> Hi,
>
> I'm getting error messages from Synapse when configuring a SOAP service
> (company intern).
> The address URI contains a series of attached arguments (key=value pairs),
> but it seems that Synapse can't handle them.
> Not sure if the URI is valid, or whether it's a Synapse error.
>
> I found something very similar about a JMS endpoint
> http://osdir.com/ml/dev-synapse.apache.org/2011-02/msg00119.html
>
> Thanks for any feedback.
> Peter
>
> ================================
> Synapse Configuration
>
>    <api name="Http2SoapAPI" context="/customerDelta">
>        <resource url-pattern="/put/*" methods="POST">
>            <inSequence>
>                <send>
>                    <endpoint>
>                       <address uri="
> http://sczdsapxi01:50000/XISOAPAdapter/MessageServlet?senderParty=&senderService=BC_FKIS&receiverParty=&receiverService=&interface=FkisCustomerListXml_Out&interfaceNamespace=http://six-group.com/Pi/Fkis/Customer";
> format="soap11"/>
>                    </endpoint>
>                </send>
>            </inSequence>
>        </resource>
>    </api>
>
> ==============================
> Synapse Error Messages
>
> 2012-06-29 08:28:11,154 [-] [main]  INFO XMLConfigurationBuilder
> Generating the Synapse configuration model by parsing the XML configuration
> 2012-06-29 08:28:11,162 [-] [main] ERROR SynapseConfigurationBuilder Could
> not initialize Synapse : com.ctc.wstx.exc.WstxUnexpectedCharException:
> Unexpected character '=' (code 61); expected a semi-colon after the
> reference for entity 'senderService'
> at [row,col {unknown-source}]: [94,101]
> org.apache.axiom.om.OMException:
> com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '='
> (code 61); expected a semi-colon after the reference for entity
> 'senderService'
> at [row,col {unknown-source}]: [94,101]
>        at
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:297)
>        at
> org.apache.axiom.om.impl.llom.OMSerializableImpl.build(OMSerializableImpl.java:78)
>        at
> org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementImpl.java:721)
>        at
> org.apache.synapse.config.xml.XMLConfigurationBuilder.getConfiguration(XMLConfigurationBuilder.java:45)
>        at
> org.apache.synapse.config.SynapseConfigurationBuilder.getConfiguration(SynapseConfigurationBuilder.java:91)
>        at
> org.apache.synapse.Axis2SynapseController.createSynapseConfiguration(Axis2SynapseController.java:465)
>        at org.apache.synapse.ServerManager.start(ServerManager.java:177)
>        at org.apache.synapse.SynapseServer.main(SynapseServer.java:68)
> Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
> character '=' (code 61); expected a semi-colon after the reference for
> entity 'senderService'
> at [row,col {unknown-source}]: [94,101]
>        at
> com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:648)
>        at
> com.ctc.wstx.sr.StreamScanner.parseEntityName(StreamScanner.java:1994)
>        at
> com.ctc.wstx.sr.StreamScanner.fullyResolveEntity(StreamScanner.java:1496)
>        at
> com.ctc.wstx.sr.BasicStreamReader.parseNormalizedAttrValue(BasicStreamReader.java:1943)
>        at
> com.ctc.wstx.sr.BasicStreamReader.handleNsAttrs(BasicStreamReader.java:3037)
>        at
> com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2936)
>        at
> com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2848)
>        at
> com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)
>        at
> org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.next(XMLStreamReaderWrapper.java:225)
>        at
> org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:682)
>        at
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:215)
>
> The content of this e-mail is intended only for the confidential use of
> the person addressed.
> If you are not the intended recipient, please notify the sender and delete
> this email immediately.
> Thank you.
>
>


-- 
Hiranya Jayathilaka
Associate Technical Lead;
WSO2 Inc.;  http://wso2.org
E-mail: [email protected];  Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com
The content of this e-mail is intended only for the confidential use of the 
person addressed. 
If you are not the intended recipient, please notify the sender and delete this 
email immediately.
Thank you.

Reply via email to