Anybody know how to make a call to a web service that doesn't return a response.
I get a SAX error saying the response is null when I call my service - not surprising when it doesn't return anything.
The following extract shows my WSDL with the message thar has no output -
<wsdl:part element="types:logRequest" name="logRequest" /> </wsdl:message> <wsdl:input message="tns:logRequest" /> </wsdl:operation> </wsdl:portType> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> <soap:operation soapAction="http://www.atkinsglobal.com/mosaic/propertylogger/log" /> <soap:body parts="logRequest" use="literal" /> </wsdl:input> </wsdl:operation> </wsdl: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. A list of wholly owned Atkins Group companies registered in the United Kingdom can be found at: http://www.atkinsglobal.com/terms_and_conditions/index.aspx. 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Using replace="none" on your submission should do it, that's intended for one-way. Jeroen Shaw, Richard A wrote:
-- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
My error occurs before that in the processing of the XPL. after calling this log service my pipeline performs another service request (the one that was logged) and that is returned to my page so replace="none" on my submission would not be correct.
Here is the top of the stack trace - org.xml.sax.SAXParseException: Premature end of file. at orbeon.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236) at orbeon.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215) at orbeon.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384) at orbeon.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:314) at orbeon.apache.xerces.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:230) at orbeon.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:792) at orbeon.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:758) at orbeon.apache.xerces.parsers.XMLParser.parse(XMLParser.java:148) at orbeon.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1178) at javax.xml.parsers.SAXParser.parse(SAXParser.java:375) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:424) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) at org.apache.axis.client.Call.invokeEngine(Call.java:2765) at org.apache.axis.client.Call.invoke(Call.java:2748) at org.apache.axis.client.Call.invoke(Call.java:1902) Richard ________________________________ From: Jeroen Hoffman on behalf of Jeroen Hoffman Sent: Fri 03/04/2009 11:10 To: [hidden email] Subject: [ops-users] Re: Delegation to one-way web service Using replace="none" on your submission should do it, that's intended for one-way. Jeroen Shaw, Richard A wrote: Anybody know how to make a call to a web service that doesn't return a response. I get a SAX error saying the response is null when I call my service - not surprising when it doesn't return anything. The following extract shows my WSDL with the message thar has no output - - <http://localhost:9090/PropertyLogger?wsdl#> <wsdl:message name="logRequest"> <wsdl:part element="types:logRequest" name="logRequest" /> </wsdl:message> - <http://localhost:9090/PropertyLogger?wsdl#> <wsdl:portType name="PropertyLoggerI"> - <http://localhost:9090/PropertyLogger?wsdl#> <wsdl:operation name="log"> <wsdl:input message="tns:logRequest" /> </wsdl:operation> </wsdl:portType> - <http://localhost:9090/PropertyLogger?wsdl#> <wsdl:binding name="PropertyLoggerBinding" type="tns:PropertyLoggerI"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> - <http://localhost:9090/PropertyLogger?wsdl#> <wsdl:operation name="log"> <soap:operation soapAction="http://www.atkinsglobal.com/mosaic/propertylogger/log" /> - <http://localhost:9090/PropertyLogger?wsdl#> <wsdl:input> <soap:body parts="logRequest" use="literal" /> </wsdl:input> </wsdl:operation> </wsdl:binding> - <http://localhost:9090/PropertyLogger?wsdl#> <wsdl:service name="PropertyLoggerService"> - <http://localhost:9090/PropertyLogger?wsdl#> <wsdl:port binding="tns:PropertyLoggerBinding" name="PropertyLoggerPort"> <soap:address location="http://localhost:9090/PropertyLogger" /> </wsdl:port> </wsdl:service> Richard 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. A list of wholly owned Atkins Group companies registered in the United Kingdom can be found at: http://www.atkinsglobal.com/terms_and_conditions/index.aspx. <http://www.atkinsglobal.com/terms_and_conditions/index.aspx> P Consider the environment. Please don't print this e-mail unless you really need to. This message has been scanned for viruses by MailControl <http://axis.eu.atkinsglobal.com/workinghere/itservices/Pages/dataandemailmgt.aspx#mailcontrol> -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws winmail.dat (17K) Download Attachment |
So how do you call that one-way (log) webservice?
Because if you use an xforms-submission processor in XPL, you still can use replace="none" in your config input. Jeroen
On Fri, Apr 3, 2009 at 12:50 PM, Shaw, Richard A <[hidden email]> wrote: My error occurs before that in the processing of the XPL. after calling this log service my pipeline performs another service request (the one that was logged) and that is returned to my page so replace="none" on my submission would not be correct. -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
I'm
using the delegation processor because my web service uses SOAP
-
<p:processor name="oxf:delegation"> I wasn't sure that an xforms-submission would wrap the request as a SOAP request. I suppose I might be able to wrap it manually. Richard Shaw ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤ Richard
Shaw
Atkins Highways and
Transportation
Tel: +44 (0) 1372
756407 From: Jeroen Hoffman [mailto:[hidden email]] Sent: 06 April 2009 09:30 To: [hidden email] Subject: [ops-users] Re: RE: Re: Delegation to one-way web service Because if you use an xforms-submission processor in XPL, you still can use replace="none" in your config input. Jeroen On Fri, Apr 3, 2009 at 12:50 PM, Shaw, Richard A <[hidden email]>
wrote: My error occurs before that in the processing of the XPL. after calling this log service my pipeline performs another service request (the one that was logged) and that is returned to my page so replace="none" on my submission would not be correct. -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Jeroen, et. al.,
On Apr 6, 2009, at 7:31 AM, Shaw, Richard A wrote:
In the 1.1 spec, there are ways to handle SOAP. I presume you will need a recent build of Orbeon, and I am sure they would appreciate your feedback on how the feature is working. Regards, Hank
Hank Ratzesberger NEES@UCSB Institute for Crustal Studies, University of California, Santa Barbara 805-893-8042 -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
In reply to this post by Shaw, Richard A
Richard,
On Apr 6, 2009, at 7:31 AM, Shaw, Richard A wrote: > I'm using the delegation processor because my web service uses SOAP - > <p:processor name="oxf:delegation"> > > I wasn't sure that an xforms-submission would wrap the request as a > SOAP request. I suppose I might be able to wrap it manually. > Instead of using the Delegation processor, I'd recommend you use an <xforms:submission> for this. You can use the <xforms:submission> from XPL with the XForms Submission processor (http://www.orbeon.com/ops/doc/processors-submission ). And then, like Jeroen said, the replace="none" should do the trick. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |