I have a .net remote object which is hosted using SOAP over TCP which I want to call from my pipeline. I've created a .net client and captured a snapshot of the request because it wasn't working how I expected it to. I've managed to make a call to the service but because of the way it uses references to identify the types of the data items it is returning multiple root objects in the response. How do I write my call in the pipeline to handle the multiple roots ? My error message is - 2007-09-18 17:54:49,125 ERROR org.orbeon.oxf.main.OPS null - Exception at oxf:/D:/portal/ops-tests/gazetteer.xpl, line 88, column 59, description reading processor output org.dom4j.IllegalAddException: The node "org.orbeon.oxf.xml.dom4j.NonLazyUserDataElement@24de7d [Element: <i2:JourneyPlanResponse uri: http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.RoadRouting.RoadInterface/td.RoadInterface attributes: [org.dom4j.util.UserDataAttribute@8b058b [Attribute: nameid value "ref-1"]]/>] userData: null, line -1, column -1" could not be added to the branch "null" because: Cannot add another element to this Document as it already has a root element of: i2:JourneyPlanResponse My xpl call is - <!-- This processor creates the web service interface definition, using the settings to determine the endpoint. --> <p:processor name="oxf:xslt"> <p:input name="data" href="#settings"/> <p:input name="config"> <config xmlns="" xsl:version="2.0"> <xsl:variable name="endpoint"> <xsl:choose> <xsl:when test="/settings/road-planner/endpoint"> <xsl:value-of select="/settings/road-planner/endpoint"/> </xsl:when> <xsl:otherwise> <xsl:text>http://localhost/no.default</xsl:text> </xsl:otherwise> </xsl:choose> </xsl:variable> <service id="journey-plan" type="webservice" style="document" endpoint="{$endpoint}"> <operation name="journey-plan" soap-action="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.RoadRouting.RoadInterface/td.RoadInterface#JourneyPlan"/> </service> </config> </p:input> <p:output name="data" id="journeyplan"/> </p:processor> <!-- This processor constructs a request. --> <p:processor name="oxf:xslt"> <p:input name="data" href="default-submission.xml"/> <p:input name="config"> <delegation:execute service="journey-plan" operation="journey-plan" xsl:version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <i2:JourneyPlan id="ref-1" xmlns:i2="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.RoadRouting.RoadInterface/td.RoadInterface"> <request href="#ref-4"/> </i2:JourneyPlan> <a1:GazetteerRequest id="ref-4" xmlns:a1="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull"> <search href="#ref-5"/> <referenceTransaction>false</referenceTransaction> <requestID id="ref-6">1</requestID> <language id="ref-7">en-GB</language> <sessionID href="#ref-6"/> <userType>1</userType> <modeFilter xsi:null="1"/> <operatorFilter xsi:null="1"/> <serviceFilter xsi:null="1"/> <secondaryModeFilter xsi:null="1"/> </a1:GazetteerRequest> <a1:RequestPlace id="ref-5" xmlns:a1="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull"> <givenName xsi:null="1"/> <locality xsi:null="1"/> <type>NaPTAN</type> <isAlternativeVia>false</isAlternativeVia> <roadPoints xsi:null="1"/> <stops xsi:null="1"/> <coordinate href="#ref-8"/> </a1:RequestPlace> <a1:Coordinate id="ref-8" xmlns:a1="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull"> <easting><xsl:value-of select="/model/form/origin/easting"/></easting> <northing><xsl:value-of select="/model/form/origin/northing"/></northing> </a1:Coordinate> </delegation:execute> </p:input> <p:output name="data" id="call" debug="call"/> </p:processor> <!-- This processor takes the xml request and sends it to a known web service. --> <p:processor name="oxf:delegation"> <p:input name="interface" href="#journeyplan"/> <p:input name="call" href="#call"/> <p:output name="data" id="result" debug="result"/> </p:processor> The raw response that I receive is - <SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:clr="http://schemas.microsoft.com/soap/encoding/clr/1.0" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <i2:JourneyPlanResponse id="ref-1" xmlns:i2="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.RoadRouting.RoadInterface/td.RoadInterface"> <return href="#ref-4"/> </i2:JourneyPlanResponse> <a1:GazetteerResult id="ref-4" xmlns:a1="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull"> <found href="#ref-5"/> <messages href="#ref-6"/> </a1:GazetteerResult> <SOAP-ENC:Array id="ref-5" SOAP-ENC:arrayType="a1:RequestPlace[1]" xmlns:a1="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull"> <item href="#ref-7"/> </SOAP-ENC:Array> <SOAP-ENC:Array id="ref-6" SOAP-ENC:arrayType="a1:Message[1]" xmlns:a1="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull"> <item href="#ref-8"/> </SOAP-ENC:Array> <a1:RequestPlace id="ref-7" xmlns:a1="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull"> <givenName id="ref-9">ALEXANDRA ROAD</givenName> <locality xsi:null="1"/> <type>NaPTAN</type> <isAlternativeVia>false</isAlternativeVia> <roadPoints href="#ref-10"/> <stops xsi:null="1"/> <coordinate href="#ref-11"/> </a1:RequestPlace> <a1:Message id="ref-8" xmlns:a1="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull"> <code>100</code> <description id="ref-12">OK</description> </a1:Message> <SOAP-ENC:Array id="ref-10" SOAP-ENC:arrayType="a1:ITN[1]" xmlns:a1="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull"> <item href="#ref-13"/> </SOAP-ENC:Array> <a1:Coordinate id="ref-11" xmlns:a1="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull"> <easting>521927</easting> <northing>160610</northing> </a1:Coordinate> <a1:ITN id="ref-13" xmlns:a1="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull"> <TOID xsi:null="1"/> <timeDate>0001-01-01T00:00:00.0000000+00:00</timeDate> <node>false</node> <internalID>3655779</internalID> <polyline xsi:null="1"/> <seed href="#ref-14"/> </a1:ITN> <a1:RoadSeed id="ref-14" xmlns:a1="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull"> <costToANode>1</costToANode> <pointOnLink href="#ref-15"/> </a1:RoadSeed> <a1:Coordinate id="ref-15" xmlns:a1="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull"> <easting>521926</easting> <northing>160611</northing> </a1:Coordinate> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
When the soap envelope is stripped off we have <i2:JourneyPlanResponse> as the first root and then another root <a1:GazetteerResult> I'm also a bit worried about the version number of my interface dll in the a1 namespaces. My pipeline will fail if I change my interface even if the items used have not changed. Richard Shaw ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤ Richard Shaw Technical Design Authority - Information Solutions Consultancy Intelligent Transport Systems Atkins Highways and Transportation Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW Tel: +44 (0) 1372 756407 Fax: +44 (0) 1372 740055 Mob: 07740 817586 E-mail: [hidden email] www.atkinsglobal.com/itsThe ultimate parent company of the Atkins Group is WS Atkins plc. Registered in England No. 1885586. Registered Office Woodcote Grove, Ashley Road, Epsom, Surrey KT18 5BW. P Consider the environment. Please don't print this e-mail unless you really need to. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Richard,
I can see how this can happen, since there are multiple elements returned under the SOAP-ENV:Body. Can you try to add a root element around the <delegation:execute> element? E.g.: <p:input name="config"> <root> <delegation:execute> ... -Erik Shaw, Richard A wrote: > I have a .net remote object which is hosted using SOAP over TCP which I > want to call from my pipeline. > > I've created a .net client and captured a snapshot of the request > because it wasn't working how I expected it to. > > I've managed to make a call to the service but because of the way it > uses references to identify the types of the data items it is returning > multiple root objects in the response. > > How do I write my call in the pipeline to handle the multiple roots ? > > My error message is - > > 2007-09-18 17:54:49,125 ERROR org.orbeon.oxf.main.OPS null - Exception > at oxf:/D:/portal/ops-tests/gazetteer.xpl, line 88, column 59, > description reading processor output > > org.dom4j.IllegalAddException: The node > "org.orbeon.oxf.xml.dom4j.NonLazyUserDataElement@24de7d [Element: > <i2:JourneyPlanResponse uri: > _http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.RoadRouting.RoadInterface/td.RoadInterface_ > attributes: [org.dom4j.util.UserDataAttribute@8b058b [Attribute: name > > id value "ref-1"]]/>] userData: null, line -1, column -1" could not be > added to the branch "null" because: Cannot add another element to this > Document as it already has a root element of: i2:JourneyPlanResponse > > My xpl call is - > > <!-- > > This processor creates the web service interface > > definition, using the settings to determine the endpoint. > > --> > > <p:processor name="oxf:xslt"> > > <p:input name="data" href="#settings"/> > > <p:input name="config"> > > <config xmlns="" xsl:version="2.0"> > > <xsl:variable name="endpoint"> > > <xsl:choose> > > <xsl:when test="/settings/road-planner/endpoint"> > > <xsl:value-of select="/settings/road-planner/endpoint"/> > > </xsl:when> > > <xsl:otherwise> > > <xsl:text>http://localhost/no.default</xsl:text> > > </xsl:otherwise> > > </xsl:choose> > > </xsl:variable> > > <service id="journey-plan" type="webservice" style="document" > endpoint="{$endpoint}"> > > <operation name="journey-plan" > soap-action="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.RoadRouting.RoadInterface/td.RoadInterface#JourneyPlan"/> > > </service> > > </config> > > </p:input> > > <p:output name="data" id="journeyplan"/> > > </p:processor> > > <!-- > > This processor constructs a request. > > --> > > <p:processor name="oxf:xslt"> > > <p:input name="data" href="default-submission.xml"/> > > <p:input name="config"> > > <delegation:execute service="journey-plan" operation="journey-plan" > xsl:version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > <i2:JourneyPlan id="ref-1" > xmlns:i2="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.RoadRouting.RoadInterface/td.RoadInterface"> > > <request href="#ref-4"/> > > </i2:JourneyPlan> > > <a1:GazetteerRequest id="ref-4" > xmlns:a1="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull"> > > <search href="#ref-5"/> > > <referenceTransaction>false</referenceTransaction> > > <requestID id="ref-6">1</requestID> > > <language id="ref-7">en-GB</language> > > <sessionID href="#ref-6"/> > > <userType>1</userType> > > <modeFilter xsi:null="1"/> > > <operatorFilter xsi:null="1"/> > > <serviceFilter xsi:null="1"/> > > <secondaryModeFilter xsi:null="1"/> > > </a1:GazetteerRequest> > > <a1:RequestPlace id="ref-5" > xmlns:a1="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull"> > > <givenName xsi:null="1"/> > > <locality xsi:null="1"/> > > <type>NaPTAN</type> > > <isAlternativeVia>false</isAlternativeVia> > > <roadPoints xsi:null="1"/> > > <stops xsi:null="1"/> > > <coordinate href="#ref-8"/> > > </a1:RequestPlace> > > <a1:Coordinate id="ref-8" > xmlns:a1="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull"> > > <easting><xsl:value-of select="/model/form/origin/easting"/></easting> > > <northing><xsl:value-of select="/model/form/origin/northing"/></northing> > > </a1:Coordinate> > > </delegation:execute> > > </p:input> > > <p:output name="data" id="call" debug="call"/> > > </p:processor> > > <!-- > > This processor takes the xml request and sends it to a known web service. > > --> > > <p:processor name="oxf:delegation"> > > <p:input name="interface" href="#journeyplan"/> > > <p:input name="call" href="#call"/> > > <p:output name="data" id="result" debug="result"/> > > </p:processor> > > The raw response that I receive is - > > <SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:clr="http://schemas.microsoft.com/soap/encoding/clr/1.0" > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> > > <SOAP-ENV:Body> > > <i2:JourneyPlanResponse id="ref-1" > xmlns:i2="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.RoadRouting.RoadInterface/td.RoadInterface"> > > <return href="#ref-4"/> > > </i2:JourneyPlanResponse> > > <a1:GazetteerResult id="ref-4" > xmlns:a1="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull"> > > <found href="#ref-5"/> > > <messages href="#ref-6"/> > > </a1:GazetteerResult> > > <SOAP-ENC:Array id="ref-5" SOAP-ENC:arrayType="a1:RequestPlace[1]" > xmlns:a1="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull"> > > <item href="#ref-7"/> > > </SOAP-ENC:Array> > > <SOAP-ENC:Array id="ref-6" SOAP-ENC:arrayType="a1:Message[1]" > xmlns:a1="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull"> > > <item href="#ref-8"/> > > </SOAP-ENC:Array> > > <a1:RequestPlace id="ref-7" > xmlns:a1="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull"> > > <givenName id="ref-9">ALEXANDRA ROAD</givenName> > > <locality xsi:null="1"/> > > <type>NaPTAN</type> > > <isAlternativeVia>false</isAlternativeVia> > > <roadPoints href="#ref-10"/> > > <stops xsi:null="1"/> > > <coordinate href="#ref-11"/> > > </a1:RequestPlace> > > <a1:Message id="ref-8" > xmlns:a1="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull"> > > <code>100</code> > > <description id="ref-12">OK</description> > > </a1:Message> > > <SOAP-ENC:Array id="ref-10" SOAP-ENC:arrayType="a1:ITN[1]" > xmlns:a1="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull"> > > <item href="#ref-13"/> > > </SOAP-ENC:Array> > > <a1:Coordinate id="ref-11" > xmlns:a1="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull"> > > <easting>521927</easting> > > <northing>160610</northing> > > </a1:Coordinate> > > <a1:ITN id="ref-13" > xmlns:a1="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull"> > > <TOID xsi:null="1"/> > > <timeDate>0001-01-01T00:00:00.0000000+00:00</timeDate> > > <node>false</node> > > <internalID>3655779</internalID> > > <polyline xsi:null="1"/> > > <seed href="#ref-14"/> > > </a1:ITN> > > <a1:RoadSeed id="ref-14" > xmlns:a1="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull"> > > <costToANode>1</costToANode> > > <pointOnLink href="#ref-15"/> > > </a1:RoadSeed> > > <a1:Coordinate id="ref-15" > xmlns:a1="http://schemas.microsoft.com/clr/nsassem/TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull"> > > <easting>521926</easting> > > <northing>160611</northing> > > </a1:Coordinate> > > </SOAP-ENV:Body> > > </SOAP-ENV:Envelope> > > > > When the soap envelope is stripped off we have <i2:JourneyPlanResponse> > as the first root and then another root <a1:GazetteerResult> > > I'm also a bit worried about the version number of my interface dll in > the a1 namespaces. My pipeline will fail if I change my interface even > if the items used have not changed. > > Richard Shaw > > ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤ > > * * > > *Richard Shaw* > > Technical Design Authority - Information Solutions Consultancy > > Intelligent Transport Systems > > * * > > *Atkins* *Highways and Transportation* > > Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW > > Tel: +44 (0) 1372 756407 > > Fax: +44 (0) 1372 740055 > > Mob: 07740 817586 > > E-mail: [hidden email] > > _www.atkinsglobal.com/its_ > <http://www.atkinsglobal.com/its////////ohttp://www.atkinsglobal.com/its> > > > > *This email and any attached files are confidential and copyright > protected. If you are not the addressee, any dissemination of this > communication is strictly prohibited. Unless otherwise expressly agreed > in writing, nothing stated in this communication shall be legally binding.* > > The ultimate parent company of the Atkins Group is WS Atkins plc. > Registered in England No. 1885586. Registered Office Woodcote Grove, > Ashley Road, Epsom, Surrey KT18 5BW. > > P *Consider the environment. Please don't print this e-mail unless you > really need to.* > -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
I was looking for a way to wrap the result but I was looking at how to add <root> to the output not to the input config.
I've tried what you suggested and unfortunately it still doesn't quite work. The first error was that it wanted xsl:version in the root element. I added that and now I get an error saying that root needs an xsi:type. I'm not sure what to add. The following shows the debug of the config sent to the oxf:delegation processor and the error message that I now receive. It's getting late I'll have another play tomorrow and if I can't get it work hope for the answer from yourself later in the day. Many thanks. <root xmlns:delegation="http://orbeon.org/oxf/xml/delegation" xmlns:oxf="http:// www.orbeon.com/oxf/processors" xmlns:p="http://www.orbeon.com/oxf/pipeline"> <delegation:execute xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" se rvice="journey-plan" operation="journey-plan"> <i2:JourneyPlan xmlns:i2="http://schemas.microsoft.com/clr/nsassem/Trans portDirect.JourneyPlanning.RoadRouting.RoadInterface/td.RoadInterface" id="ref-1 "> <request href="#ref-4"/> </i2:JourneyPlan> <a1:GazetteerRequest xmlns:a1="http://schemas.microsoft.com/clr/nsassem/ TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2. 0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull" id="ref-4"> <search href="#ref-5"/> <referenceTransaction>false</referenceTransaction> <requestID id="ref-6">1</requestID> <language id="ref-7">en-GB</language> <sessionID href="#ref-6"/> <userType>1</userType> <modeFilter xsi:null="1"/> <operatorFilter xsi:null="1"/> <serviceFilter xsi:null="1"/> <secondaryModeFilter xsi:null="1"/> </a1:GazetteerRequest> <a1:RequestPlace xmlns:a1="http://schemas.microsoft.com/clr/nsassem/Tran sportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0% 2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull" id="ref-5"> <givenName xsi:null="1"/> <locality xsi:null="1"/> <type>NaPTAN</type> <isAlternativeVia>false</isAlternativeVia> <roadPoints xsi:null="1"/> <stops xsi:null="1"/> <coordinate href="#ref-8"/> </a1:RequestPlace> <a1:Coordinate xmlns:a1="http://schemas.microsoft.com/clr/nsassem/Transp ortDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C %20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull" id="ref-8"> <easting>535193</easting> <northing>178578</northing> </a1:Coordinate> </delegation:execute> </root> 2007-09-19 21:40:04,942 ERROR org.orbeon.oxf.main.OPS null - Exception at oxf:/D :/portal/ops-tests/gazetteer.xpl, line 82, column 55, description reading proces sor output org.orbeon.oxf.common.OXFException: Root element must contain an xsi:type attrib ute at org.orbeon.oxf.processor.serializer.BinaryTextContentHandler.startEle ment(BinaryTextContentHandler.java:98) at org.orbeon.oxf.xml.ForwardingContentHandler.startElement(ForwardingCo ntentHandler.java:87) at org.orbeon.oxf.processor.DelegationProcessor$2.startElement(Delegatio nProcessor.java:138) at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:162) at org.orbeon.oxf.processor.DebugProcessor$1.readImpl(DebugProcessor.jav a:76) at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:987) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Proce ssorImpl.java:1170) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$ConcretePr ocessorFilter.read(ProcessorImpl.java:965) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Proce ssorImpl.java:1170) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.j ava:349) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.j ava:354) at org.orbeon.oxf.processor.DelegationProcessor$1.readImpl(DelegationPro cessor.java:78) at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:987) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Proce ssorImpl.java:1170) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.j ava:349) at org.orbeon.oxf.processor.serializer.HttpSerializer.readInput(HttpSeri alizer.java:42) at org.orbeon.oxf.processor.serializer.HttpSerializerBase$1.read(HttpSer ializerBase.java:140) at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(Process orImpl.java:470) at org.orbeon.oxf.processor.serializer.HttpSerializerBase.start(HttpSeri alizerBase.java:131) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelinePr ocessor.java:652) at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl. java:515) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelinePro cessor.java:649) at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:86) at org.orbeon.oxf.pipeline.PipelineEngineImpl.executePipeline(PipelineEn gineImpl.java:31) at org.orbeon.oxf.main.OPS.start(OPS.java:179) at org.orbeon.oxf.main.OPS.main(OPS.java:195) 2007-09-19 21:40:04,958 INFO org.orbeon.oxf.main.OPS null - / - Timing: 2328 - Cache hits: 9, fault: 22, adds: 24, success rate: 29% 2007-09-19 21:40:04,974 ERROR org.orbeon.oxf.main.OPS null - Exception at oxf:/D :/portal/ops-tests/gazetteer.xpl, line 82, column 55, description reading proces sor output org.orbeon.oxf.common.OXFException: Root element must contain an xsi:type attrib ute at org.orbeon.oxf.processor.serializer.BinaryTextContentHandler.startEle ment(BinaryTextContentHandler.java:98) at org.orbeon.oxf.xml.ForwardingContentHandler.startElement(ForwardingCo ntentHandler.java:87) at org.orbeon.oxf.processor.DelegationProcessor$2.startElement(Delegatio nProcessor.java:138) at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:162) at org.orbeon.oxf.processor.DebugProcessor$1.readImpl(DebugProcessor.jav a:76) at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:987) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Proce ssorImpl.java:1170) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$ConcretePr ocessorFilter.read(ProcessorImpl.java:965) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Proce ssorImpl.java:1170) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.j ava:349) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.j ava:354) at org.orbeon.oxf.processor.DelegationProcessor$1.readImpl(DelegationPro cessor.java:78) at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:987) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Proce ssorImpl.java:1170) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.j ava:349) at org.orbeon.oxf.processor.serializer.HttpSerializer.readInput(HttpSeri alizer.java:42) at org.orbeon.oxf.processor.serializer.HttpSerializerBase$1.read(HttpSer ializerBase.java:140) at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(Process orImpl.java:470) at org.orbeon.oxf.processor.serializer.HttpSerializerBase.start(HttpSeri alizerBase.java:131) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelinePr ocessor.java:652) at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl. java:515) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelinePro cessor.java:649) at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:86) at org.orbeon.oxf.pipeline.PipelineEngineImpl.executePipeline(PipelineEn gineImpl.java:31) at org.orbeon.oxf.main.OPS.start(OPS.java:179) at org.orbeon.oxf.main.OPS.main(OPS.java:195) BTW my version of OPS is - 3.0.1.200602032326 Richard Shaw ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤ Richard Shaw Technical Design Authority - Information Solutions Consultancy Intelligent Transport Systems Atkins Highways and Transportation Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW Tel: +44 (0) 1372 756407 Fax: +44 (0) 1372 740055 Mob: 07740 817586 E-mail: [hidden email] www.atkinsglobal.com/its -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez Sent: 19 September 2007 18:24 To: [hidden email] Subject: Re: [ops-users] Callining .net remote object Richard, I can see how this can happen, since there are multiple elements returned under the SOAP-ENV:Body. Can you try to add a root element around the <delegation:execute> element? E.g.: <p:input name="config"> <root> <delegation:execute> ... -Erik Shaw, Richard A wrote: > I have a .net remote object which is hosted using SOAP over TCP which > I want to call from my pipeline. > > I've created a .net client and captured a snapshot of the request > because it wasn't working how I expected it to. ---truncated--- This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. The ultimate parent company of the Atkins Group is WS Atkins plc. Registered in England No. 1885586. Registered Office Woodcote Grove, Ashley Road, Epsom, Surrey KT18 5BW. Consider the environment. Please don't print this e-mail unless you really need to. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Richard,
I think that the xsi:type error probably occurs because the result of the SOAP call goes directly to an HTTP serializer. What are you doing with the result of the call down the line? -Erik Shaw, Richard A wrote: > I was looking for a way to wrap the result but I was looking at how to add <root> to the output not to the input config. > > I've tried what you suggested and unfortunately it still doesn't quite work. > > The first error was that it wanted xsl:version in the root element. I added that and now I get an error saying that root needs an xsi:type. I'm not sure what to add. > > The following shows the debug of the config sent to the oxf:delegation processor and the error message that I now receive. It's getting late I'll have another play tomorrow and if I can't get it work hope for the answer from yourself later in the day. Many thanks. > > <root xmlns:delegation="http://orbeon.org/oxf/xml/delegation" xmlns:oxf="http:// > www.orbeon.com/oxf/processors" xmlns:p="http://www.orbeon.com/oxf/pipeline"> > <delegation:execute xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" se > rvice="journey-plan" operation="journey-plan"> > <i2:JourneyPlan xmlns:i2="http://schemas.microsoft.com/clr/nsassem/Trans > portDirect.JourneyPlanning.RoadRouting.RoadInterface/td.RoadInterface" id="ref-1 > "> > <request href="#ref-4"/> > </i2:JourneyPlan> > <a1:GazetteerRequest xmlns:a1="http://schemas.microsoft.com/clr/nsassem/ > TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2. > 0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull" id="ref-4"> > <search href="#ref-5"/> > <referenceTransaction>false</referenceTransaction> > <requestID id="ref-6">1</requestID> > <language id="ref-7">en-GB</language> > <sessionID href="#ref-6"/> > <userType>1</userType> > <modeFilter xsi:null="1"/> > <operatorFilter xsi:null="1"/> > <serviceFilter xsi:null="1"/> > <secondaryModeFilter xsi:null="1"/> > </a1:GazetteerRequest> > <a1:RequestPlace xmlns:a1="http://schemas.microsoft.com/clr/nsassem/Tran > sportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0% > 2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull" id="ref-5"> > <givenName xsi:null="1"/> > <locality xsi:null="1"/> > <type>NaPTAN</type> > <isAlternativeVia>false</isAlternativeVia> > <roadPoints xsi:null="1"/> > <stops xsi:null="1"/> > <coordinate href="#ref-8"/> > </a1:RequestPlace> > <a1:Coordinate xmlns:a1="http://schemas.microsoft.com/clr/nsassem/Transp > ortDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2.0.0%2C > %20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull" id="ref-8"> > <easting>535193</easting> > <northing>178578</northing> > </a1:Coordinate> > </delegation:execute> > </root> > > 2007-09-19 21:40:04,942 ERROR org.orbeon.oxf.main.OPS null - Exception at oxf:/D > :/portal/ops-tests/gazetteer.xpl, line 82, column 55, description reading proces > sor output > org.orbeon.oxf.common.OXFException: Root element must contain an xsi:type attrib > ute > at org.orbeon.oxf.processor.serializer.BinaryTextContentHandler.startEle > ment(BinaryTextContentHandler.java:98) > at org.orbeon.oxf.xml.ForwardingContentHandler.startElement(ForwardingCo > ntentHandler.java:87) > at org.orbeon.oxf.processor.DelegationProcessor$2.startElement(Delegatio > nProcessor.java:138) > at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:162) > at org.orbeon.oxf.processor.DebugProcessor$1.readImpl(DebugProcessor.jav > a:76) > at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:987) > > at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Proce > ssorImpl.java:1170) > at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$ConcretePr > ocessorFilter.read(ProcessorImpl.java:965) > at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Proce > ssorImpl.java:1170) > at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.j > ava:349) > at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.j > ava:354) > at org.orbeon.oxf.processor.DelegationProcessor$1.readImpl(DelegationPro > cessor.java:78) > at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:987) > > at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Proce > ssorImpl.java:1170) > at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.j > ava:349) > at org.orbeon.oxf.processor.serializer.HttpSerializer.readInput(HttpSeri > alizer.java:42) > at org.orbeon.oxf.processor.serializer.HttpSerializerBase$1.read(HttpSer > ializerBase.java:140) > at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(Process > orImpl.java:470) > at org.orbeon.oxf.processor.serializer.HttpSerializerBase.start(HttpSeri > alizerBase.java:131) > at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelinePr > ocessor.java:652) > at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl. > java:515) > at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelinePro > cessor.java:649) > at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:86) > at org.orbeon.oxf.pipeline.PipelineEngineImpl.executePipeline(PipelineEn > gineImpl.java:31) > at org.orbeon.oxf.main.OPS.start(OPS.java:179) > at org.orbeon.oxf.main.OPS.main(OPS.java:195) > 2007-09-19 21:40:04,958 INFO org.orbeon.oxf.main.OPS null - / - Timing: 2328 - > Cache hits: 9, fault: 22, adds: 24, success rate: 29% > 2007-09-19 21:40:04,974 ERROR org.orbeon.oxf.main.OPS null - Exception at oxf:/D > :/portal/ops-tests/gazetteer.xpl, line 82, column 55, description reading proces > sor output > org.orbeon.oxf.common.OXFException: Root element must contain an xsi:type attrib > ute > at org.orbeon.oxf.processor.serializer.BinaryTextContentHandler.startEle > ment(BinaryTextContentHandler.java:98) > at org.orbeon.oxf.xml.ForwardingContentHandler.startElement(ForwardingCo > ntentHandler.java:87) > at org.orbeon.oxf.processor.DelegationProcessor$2.startElement(Delegatio > nProcessor.java:138) > at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:162) > at org.orbeon.oxf.processor.DebugProcessor$1.readImpl(DebugProcessor.jav > a:76) > at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:987) > > at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Proce > ssorImpl.java:1170) > at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$ConcretePr > ocessorFilter.read(ProcessorImpl.java:965) > at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Proce > ssorImpl.java:1170) > at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.j > ava:349) > at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.j > ava:354) > at org.orbeon.oxf.processor.DelegationProcessor$1.readImpl(DelegationPro > cessor.java:78) > at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:987) > > at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Proce > ssorImpl.java:1170) > at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.j > ava:349) > at org.orbeon.oxf.processor.serializer.HttpSerializer.readInput(HttpSeri > alizer.java:42) > at org.orbeon.oxf.processor.serializer.HttpSerializerBase$1.read(HttpSer > ializerBase.java:140) > at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(Process > orImpl.java:470) > at org.orbeon.oxf.processor.serializer.HttpSerializerBase.start(HttpSeri > alizerBase.java:131) > at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelinePr > ocessor.java:652) > at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl. > java:515) > at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelinePro > cessor.java:649) > at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:86) > at org.orbeon.oxf.pipeline.PipelineEngineImpl.executePipeline(PipelineEn > gineImpl.java:31) > at org.orbeon.oxf.main.OPS.start(OPS.java:179) > at org.orbeon.oxf.main.OPS.main(OPS.java:195) > > BTW my version of OPS is - 3.0.1.200602032326 > > Richard Shaw > > ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤ > > Richard Shaw > Technical Design Authority - Information Solutions Consultancy > Intelligent Transport Systems > > Atkins Highways and Transportation > Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW > > Tel: +44 (0) 1372 756407 > Fax: +44 (0) 1372 740055 > Mob: 07740 817586 > E-mail: [hidden email] > > www.atkinsglobal.com/its > > -----Original Message----- > From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez > Sent: 19 September 2007 18:24 > To: [hidden email] > Subject: Re: [ops-users] Callining .net remote object > > Richard, > > I can see how this can happen, since there are multiple elements returned under the SOAP-ENV:Body. > > Can you try to add a root element around the <delegation:execute> element? E.g.: > > <p:input name="config"> > <root> > <delegation:execute> > ... > > -Erik > > Shaw, Richard A wrote: >> I have a .net remote object which is hosted using SOAP over TCP which >> I want to call from my pipeline. >> >> I've created a .net client and captured a snapshot of the request >> because it wasn't working how I expected it to. > > > ---truncated--- > > > This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. > > The ultimate parent company of the Atkins Group is WS Atkins plc. Registered in England No. 1885586. Registered Office Woodcote Grove, Ashley Road, Epsom, Surrey KT18 5BW. > > Consider the environment. Please don't print this e-mail unless you really need to. > > -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Your right I spotted that while testing something else this afternoon.
I was sending the request through a TCP trace program and I convinced myself that the pipeline wasn't sending anything. I've tried it again now and it all works fine. Thanks Richard Shaw ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤ Richard Shaw Technical Design Authority - Information Solutions Consultancy Intelligent Transport Systems Atkins Highways and Transportation Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW Tel: +44 (0) 1372 756407 Fax: +44 (0) 1372 740055 Mob: 07740 817586 E-mail: [hidden email] www.atkinsglobal.com/its -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez Sent: 20 September 2007 12:00 To: [hidden email] Subject: Re: [ops-users] Callining .net remote object Richard, I think that the xsi:type error probably occurs because the result of the SOAP call goes directly to an HTTP serializer. What are you doing with the result of the call down the line? -Erik Shaw, Richard A wrote: > I was looking for a way to wrap the result but I was looking at how to add <root> to the output not to the input config. > > I've tried what you suggested and unfortunately it still doesn't quite work. > > The first error was that it wanted xsl:version in the root element. I added that and now I get an error saying that root needs an xsi:type. I'm not sure what to add. > > The following shows the debug of the config sent to the oxf:delegation processor and the error message that I now receive. It's getting late I'll have another play tomorrow and if I can't get it work hope for the answer from yourself later in the day. Many thanks. > > <root xmlns:delegation="http://orbeon.org/oxf/xml/delegation" > xmlns:oxf="http:// www.orbeon.com/oxf/processors" xmlns:p="http://www.orbeon.com/oxf/pipeline"> > <delegation:execute > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" se rvice="journey-plan" operation="journey-plan"> > <i2:JourneyPlan > xmlns:i2="http://schemas.microsoft.com/clr/nsassem/Trans > portDirect.JourneyPlanning.RoadRouting.RoadInterface/td.RoadInterface" > id="ref-1 "> > <request href="#ref-4"/> > </i2:JourneyPlan> > <a1:GazetteerRequest > xmlns:a1="http://schemas.microsoft.com/clr/nsassem/ > TransportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D9.2. > 0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull" id="ref-4"> > <search href="#ref-5"/> > <referenceTransaction>false</referenceTransaction> > <requestID id="ref-6">1</requestID> > <language id="ref-7">en-GB</language> > <sessionID href="#ref-6"/> > <userType>1</userType> > <modeFilter xsi:null="1"/> > <operatorFilter xsi:null="1"/> > <serviceFilter xsi:null="1"/> > <secondaryModeFilter xsi:null="1"/> > </a1:GazetteerRequest> > <a1:RequestPlace > xmlns:a1="http://schemas.microsoft.com/clr/nsassem/Tran > sportDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version% > 3D9.2.0.0% 2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull" > id="ref-5"> > <givenName xsi:null="1"/> > <locality xsi:null="1"/> > <type>NaPTAN</type> > <isAlternativeVia>false</isAlternativeVia> > <roadPoints xsi:null="1"/> > <stops xsi:null="1"/> > <coordinate href="#ref-8"/> > </a1:RequestPlace> > <a1:Coordinate > xmlns:a1="http://schemas.microsoft.com/clr/nsassem/Transp > ortDirect.JourneyPlanning.CJPInterface/td.CJPInterface%2C%20Version%3D > 9.2.0.0%2C %20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull" > id="ref-8"> > <easting>535193</easting> > <northing>178578</northing> > </a1:Coordinate> > </delegation:execute> > </root> > > 2007-09-19 21:40:04,942 ERROR org.orbeon.oxf.main.OPS null - Exception > at oxf:/D :/portal/ops-tests/gazetteer.xpl, line 82, column 55, > description reading proces sor output > org.orbeon.oxf.common.OXFException: Root element must contain an > xsi:type attrib ute > at > org.orbeon.oxf.processor.serializer.BinaryTextContentHandler.startEle > ment(BinaryTextContentHandler.java:98) > at > org.orbeon.oxf.xml.ForwardingContentHandler.startElement(ForwardingCo > ntentHandler.java:87) > at > org.orbeon.oxf.processor.DelegationProcessor$2.startElement(Delegatio > nProcessor.java:138) > at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:162) > at > org.orbeon.oxf.processor.DebugProcessor$1.readImpl(DebugProcessor.jav > a:76) > at > org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:987) > > at > org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Proce > ssorImpl.java:1170) > at > org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$ConcretePr > ocessorFilter.read(ProcessorImpl.java:965) > at > org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Proce > ssorImpl.java:1170) > at > org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.j > ava:349) > at > org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.j > ava:354) > at > org.orbeon.oxf.processor.DelegationProcessor$1.readImpl(DelegationPro > cessor.java:78) > at > org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:987) > > at > org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Proce > ssorImpl.java:1170) > at > org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.j > ava:349) > at > org.orbeon.oxf.processor.serializer.HttpSerializer.readInput(HttpSeri > alizer.java:42) > at > org.orbeon.oxf.processor.serializer.HttpSerializerBase$1.read(HttpSer > ializerBase.java:140) > at > org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(Process > orImpl.java:470) > at > org.orbeon.oxf.processor.serializer.HttpSerializerBase.start(HttpSeri > alizerBase.java:131) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelinePr > ocessor.java:652) > at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl. > java:515) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelinePro > cessor.java:649) > at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:86) > at > org.orbeon.oxf.pipeline.PipelineEngineImpl.executePipeline(PipelineEn > gineImpl.java:31) > at org.orbeon.oxf.main.OPS.start(OPS.java:179) > at org.orbeon.oxf.main.OPS.main(OPS.java:195) > 2007-09-19 21:40:04,958 INFO org.orbeon.oxf.main.OPS null - / - > Timing: 2328 - Cache hits: 9, fault: 22, adds: 24, success rate: 29% > 2007-09-19 21:40:04,974 ERROR org.orbeon.oxf.main.OPS null - Exception > at oxf:/D :/portal/ops-tests/gazetteer.xpl, line 82, column 55, > description reading proces sor output > org.orbeon.oxf.common.OXFException: Root element must contain an > xsi:type attrib ute > at > org.orbeon.oxf.processor.serializer.BinaryTextContentHandler.startEle > ment(BinaryTextContentHandler.java:98) > at > org.orbeon.oxf.xml.ForwardingContentHandler.startElement(ForwardingCo > ntentHandler.java:87) > at > org.orbeon.oxf.processor.DelegationProcessor$2.startElement(Delegatio > nProcessor.java:138) > at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:162) > at > org.orbeon.oxf.processor.DebugProcessor$1.readImpl(DebugProcessor.jav > a:76) > at > org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:987) > > at > org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Proce > ssorImpl.java:1170) > at > org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$ConcretePr > ocessorFilter.read(ProcessorImpl.java:965) > at > org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Proce > ssorImpl.java:1170) > at > org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.j > ava:349) > at > org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.j > ava:354) > at > org.orbeon.oxf.processor.DelegationProcessor$1.readImpl(DelegationPro > cessor.java:78) > at > org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:987) > > at > org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Proce > ssorImpl.java:1170) > at > org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.j > ava:349) > at > org.orbeon.oxf.processor.serializer.HttpSerializer.readInput(HttpSeri > alizer.java:42) > at > org.orbeon.oxf.processor.serializer.HttpSerializerBase$1.read(HttpSer > ializerBase.java:140) > at > org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(Process > orImpl.java:470) > at > org.orbeon.oxf.processor.serializer.HttpSerializerBase.start(HttpSeri > alizerBase.java:131) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelinePr > ocessor.java:652) > at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl. > java:515) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelinePro > cessor.java:649) > at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:86) > at > org.orbeon.oxf.pipeline.PipelineEngineImpl.executePipeline(PipelineEn > gineImpl.java:31) > at org.orbeon.oxf.main.OPS.start(OPS.java:179) > at org.orbeon.oxf.main.OPS.main(OPS.java:195) > > BTW my version of OPS is - 3.0.1.200602032326 > > Richard Shaw > > ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤ > > Richard Shaw > Technical Design Authority - Information Solutions Consultancy > Intelligent Transport Systems > > Atkins Highways and Transportation > Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW > > Tel: +44 (0) 1372 756407 > Fax: +44 (0) 1372 740055 > Mob: 07740 817586 > E-mail: [hidden email] > > www.atkinsglobal.com/its > > -----Original Message----- > From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik > Bruchez > Sent: 19 September 2007 18:24 > To: [hidden email] > Subject: Re: [ops-users] Callining .net remote object > > Richard, > > I can see how this can happen, since there are multiple elements returned under the SOAP-ENV:Body. > > Can you try to add a root element around the <delegation:execute> element? E.g.: > > <p:input name="config"> > <root> > <delegation:execute> > ... > > -Erik > > Shaw, Richard A wrote: >> I have a .net remote object which is hosted using SOAP over TCP which >> I want to call from my pipeline. >> >> I've created a .net client and captured a snapshot of the request >> because it wasn't working how I expected it to. > > > ---truncated--- > > > This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. > > The ultimate parent company of the Atkins Group is WS Atkins plc. Registered in England No. 1885586. Registered Office Woodcote Grove, Ashley Road, Epsom, Surrey KT18 5BW. > > Consider the environment. Please don't print this e-mail unless you really need to. > > -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ This message has been scanned for viruses by MailControl - (see http://bluepages.wsatkins.co.uk/?6875772) -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |