Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

client found response content type of text/plain, but expected text/xml

807567Jan 22 2009 — edited Jan 23 2009
I am attempting to call a web service through our Sun One Web server 6.1 SP9 to a WebLogic 10.3 app server where the web service resides.

When we make the call straight to the weblogic server it is successful. When we direct the call to go through the Sun One web server we get this error from the calling application.

client found response content type of text/plain, but expected text/xml. The request failed with the error message: --HTTP/1.1 100 Continue

(Then the soap xml document)

When I force the content type in my obj.conf file to text/xml I still get the same error.

Is there anything special you need to setup the webserver for soap requests? Is this a web service issue and not a web server issue?

obj.conf
<Object name="default">
NameTrans fn="pfx2dir" from="/mc-icons" dir="/usr/iplanet/servers/ns-icons" name="es-internal"
NameTrans fn="document-root" root="$docroot"
PathCheck fn="unix-uri-clean"
PathCheck fn="check-acl" acl="default"
PathCheck fn="find-pathinfo"
PathCheck fn="find-index" index-names="index.html"
PathCheck fn="set-cache-control" control="private"
ObjectType fn="type-by-extension"
ObjectType fn="force-type" type="text/plain"
Service method="(GET|HEAD|POST|PUT)" type="text/xml" fn="wl-proxy" WebLogicCluster="myserver.com" Debug="ALL" DebugConfigInfo="on" HungServerRecoverSecs="600" ErrorPage="http://myserver.com/error.html" WLLogFile="/usr/iplanet/servers/https-nonapp/logs/wlproxy.log" Idempotent="OFF"
Service method="(GET|HEAD)" type="magnus-internal/imagemap" fn="imagemap"
Service method="(GET|HEAD)" type="magnus-internal/directory" fn="send-error" path="/usr/iplanet/servers/nonapp-docs/404.html"
Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
AddLog fn="flex-log" name="access"
</Object>

<Object name="NonAppWSB" ppath="*/NonAppWSB/*" >
ObjectType fn=force-type type=text/xml
Service fn="wl-proxy" WebLogicCluster="myserver.com" Debug="ON" DebugConfigInfo="on" Idempotent="OFF" WLLogFile="/usr/iplanet/servers/https-nonapp/logs/wlproxy.log" HungServerRecoverSecs="600" FileCaching="OFF" MaxPostSize="-1"
</Object>


Any help is appreciated.

-Roy
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 20 2009
Added on Jan 22 2009
2 comments
407 views