• Post Reply Bookmark Topic Watch Topic
  • New Topic

MSOffice Research Panel - Apache/JAXRPC disconnect  RSS feed

 
Jim Sweeney
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to create a custom MS Office Research service using JAXRPC in jwsdp1.6. I've got my service returning a Registration response that looks structurally/semantically equivalent to that of the sample Google service. However MS Word is rejecting my response. There are a few differences having to do with the response headers and how namespaces are declared. The headers of the Google service look like this:

HTTP/1.1 200 OK
Server: Microsoft-IIS/5.1
Date: Thu, 20 Oct 2005 22:19:37 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Cache-Control: no-cache
Pragma: no-cache
Expires: -1
Content-Type: text/xml; charset=utf-8
Content-Length: 1802

while my JAXRPC service response headers look like this:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
SOAPAction: ""
Content-Type: text/xml;charset=utf-8
Date: Thu, 20 Oct 2005 23:45:04 GMT
Connection: close

Is there any header (present or missing) in the JAXRPC list which would cause Registration to fail?


Also, the Google SOAP Envelope and Body tags start off this way:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<RegistrationResponse xmlns="urn:Microsoft.Search">
<RegistrationResult>

while my Envelope and Body tags start this way:

<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns0="urn:Microsoft.Search">
<env:Body>
<ns0:RegistrationResponse>
<ns0:RegistrationResult>

Could Microsoft possibly have a problem with the differing methods of declaring and using namespaces?

Finally, is there any way to get more information from MS Word about why it's failing? Maybe a log somewhere or a verbose message setting?

Thanks for any advice!

Jim Sweeney
 
Jim Sweeney
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I've narrowed the problem down to the ns0 namespace alias on the RegistrationResponse and RegistrationResult tags. MSWord does not like that these names are prefixed with the alias. Is there any way to modify the WSDL or other jax-rpc inputs so that the Envelope tag declares the default namespace as xmlns="urn:Microsoft.Search" instead of declaring the alias xmlns:ns0="urn:Microsoft.Search" when my jax-rpc service writes the response?

Thanks!
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!