Hi, the old webservices framework uses Axis and has quite some bugs. You have to do some extra work to make it accessible using https (rather than http)
I suggest to switch over to ERJaxWS to create and deploy your webservice. There are sample apps in wonder that show you how to do it. Markus > Am 25.07.2016 um 13:14 schrieb André Rothe <[email protected]>: > > Hi, > > I'm new on WebObjects, so I try to test some things along the available > tutorials. > > I have created a WO Application in Eclipse and built it as webservice. I > can compile it and start the Application.class as WOApplication: > > Your application's URL is: > http://127.0.0.1:53432/cgi-bin/WebObjects/GeoCoding.woa > [2016-7-25 12:55:12 MESZ] <main> Waiting for requests... > > I can call > > http://127.0.0.1:53432/cgi-bin/WebObjects/GeoCoding.woa/ws/GeoCodingService?wsdl > > which returns the description of the service within a browser page. > So it seems to be fine till here. > > Now I compile the application with WOLips Ant Tools->Install. > There is no error, two tar.gz will be created. > > I copy the archives to the target server as described here: > > https://wiki.wocommunity.org/display/WEB/Your+First+Deployment > > I can add an application within the JavaMonitor and the app starts > successfully. > > > [2016-7-25 12:42:38 MESZ] <main> The URL for webserver connect is: > http://xxxxxx/cgi-bin/WebObjects/GeoCoding.woa/-3080 > [2016-7-25 12:42:38 MESZ] <main> null > [2016-7-25 12:42:38 MESZ] <main> Waiting for requests... > > The LEDs are green, all is fine till here. I can click on the > application link and it returns a page > > https://xxxxxx/apps/WebObjects/GeoCoding.woa/1 > Hello World > > Seems to work. > > Now I try to get the wsdl file: > > https://xxxxxx/apps/WebObjects/GeoCoding.woa/1/ws/GeoCoding?wsdl > > which returns: > > [2016-7-25 12:43:41 MESZ] <WorkerThread13> AxisFault > faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException > faultSubcode: > faultString: org.xml.sax.SAXParseException; Premature end of file. > faultActor: > faultNode: > faultDetail: > {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException; > Premature end of file. > at > org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown > Source) > at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) > at > org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown > Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown > Source) > at javax.xml.parsers.SAXParser.parse(SAXParser.java:392) > 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:435) > at org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:471) > at > com.webobjects.appserver._private.WOWebService.performActionNamed(WOWebService.java:414) > at > com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:259) > at > com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:161) > at > com.webobjects.appserver._private.WOWebServiceRequestHandler.handleRequest(WOWebServiceRequestHandler.java:109) > at > com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687) > at > com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144) > at > com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226) > at java.lang.Thread.run(Thread.java:745) > > {http://xml.apache.org/axis/}hostname:xxxxxx > > org.xml.sax.SAXParseException; Premature end of file. > at org.apache.axis.AxisFault.makeFault(AxisFault.java:101) > at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701) > at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) > at org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:471) > at > com.webobjects.appserver._private.WOWebService.performActionNamed(WOWebService.java:414) > at > com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:259) > at > com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:161) > at > com.webobjects.appserver._private.WOWebServiceRequestHandler.handleRequest(WOWebServiceRequestHandler.java:109) > at > com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687) > at > com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144) > at > com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226) > at java.lang.Thread.run(Thread.java:745) > Caused by: org.xml.sax.SAXParseException; Premature end of file. > at > org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown > Source) > at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) > at > org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown > Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown > Source) > at javax.xml.parsers.SAXParser.parse(SAXParser.java:392) > at > org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) > at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) > ... 10 more > > > Did I forget some libraries? Or some permissions? There is a difference > between the WebObject installation root on the dev-machine and on the > target server (/opt/Apple/ vs. /opt/WebObject543). > > Any ideas? > Thanks a lot > Andre > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/markus.stoll%40junidas.de > > This email sent to [email protected] Mit freundlichen Grüßen Markus Stoll -- Dr. Markus Stoll (Geschäftsführer) [email protected] junidas GmbH, Aixheimer Str. 12, 70619 Stuttgart Tel. +49 (711) 4599799-11, Fax +49 (711) 4599799-10 Geschäftsführer: Dr. Markus Stoll, Matthias Zepf Amtsgericht Stuttgart, HRB 21939
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
