• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WO WebServices AxisFault SOLVED
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WO WebServices AxisFault SOLVED


  • Subject: Re: WO WebServices AxisFault SOLVED
  • From: JR Ruggentaler <email@hidden>
  • Date: Mon, 09 May 2011 11:59:17 -0500

See: http://en.wikibooks.org/wiki/WebObjects/Web_Services/Common_Pitfalls_and_Troubleshooting

SAXParseException when using HTTPS

If, in WebObjects 5.4.x, you get an exception connecting to your web service via HTTPS (through the WebObjects Apache adaptor) and get an error like the following:

 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))
     ... more

You will need to add additional information to the file server.wsdd to tell Apache AXIS what to do when it believes the transport mechanism is 'https.' AXIS will make this determination based on the HTTP header information forwarded by the Apache WebObjects adaptor. If no entry is made to tell AXIS how to handle 'https', it will assume the incoming data from the adaptor is encrypted via SSL, even though the communication between the adaptor and the instance is in the clear. To change the behavior of AXIS, change the file server.wsdd from:

<transport name="http">
 <requestFlow>
  <handler type="HTTPActionHandler"/>
  <handler type="URLMapper"/>
 </requestFlow>
</transport>

To:

<transport name="http">
 <requestFlow>
  <handler type="HTTPActionHandler"/>
  <handler type="URLMapper"/>
 </requestFlow>
</transport>
<transport name="https">
 <requestFlow>
  <handler type="HTTPActionHandler"/>
  <handler type="URLMapper"/>
 </requestFlow>
</transport>
Thanks for all the HELP!
PS: and the Wiki page!
JR
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >WO WebServices AxisFault (From: JR Ruggentaler <email@hidden>)
 >Re: WO WebServices AxisFault (From: Lachlan Deck <email@hidden>)
 >Re: WO WebServices AxisFault (From: Jon Nolan <email@hidden>)
 >Re: WO WebServices AxisFault (From: JR Ruggentaler <email@hidden>)

  • Prev by Date: Re: Installing the tools: The One True Way?
  • Next by Date: Re: Re: Installing the tools: The One True
  • Previous by thread: Re: WO WebServices AxisFault
  • Next by thread: Re: WO WebServices AxisFault
  • Index(es):
    • Date
    • Thread