3 Replies Latest reply: Jul 3, 2013 8:51 AM by Pgleghorn-Oracle RSS

    sites webcervice call

    fmw2123

      I was trying to call predefined webservices using ws client and am getting exception as below. is there anything needed to configured

       

      AxisFault

      faultCode: {http://xml.apache.org/axis/}HTTP

      faultSubcode:

      faultString: (401)Unauthorized

      faultActor:

      faultNode:

      faultDetail:

          {}:return code:  401

      <html><head><script type='text/javascript'>var url = top.location.href;url = url.split('/').slice(0,3).join('/') + '/cs/ContentServer?cs_environment=standard&pagename=OpenMarket%2FXcelerate%2FActions%2FSecurity%2FTimeoutError';url = 'http://localhost:8180/cas/logout?url=' + encodeURIComponent(url);top.location.href = url;</script><head></head><body>Session is invalid please relogin</body></html>

          {http://xml.apache.org/axis/}HttpErrorCode:401

       

      (401)Unauthorized

          at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)

          at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)

          at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)

          at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)

          at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)

          at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)

        • 1. Re: sites webcervice call
          Nelash Jindal

          Hi

           

          Are you using  version 11.1.1.6.1?? if yes, then you need to add your URL in "excludeURL" list in ReqAuthConfig.xml OR comment "Request Authentication Filter" in web.xml as this xml filter's the request you are sending. This is a new filter they have added in this version.

           

          Hope this helps.

           

          Regards,

          Nelash jindal

          • 2. Re: sites webcervice call
            fmw2123

            Hi

               Thnaks for the reply it was helpful, but i ran into another issue as below. I have the soap address as http://localhost:8180/cs/ContentServer. Should i specify

            pagename in the url?. what format the url should be to invoke predefined Misc or SitePlan webservice

             

             

            AxisFault

            faultCode: {http://xml.apache.org/axis/}HTTP

            faultSubcode:

            faultString: (400)Bad Request

            faultActor:

            faultNode:

            faultDetail:

                {}:return code:  400

            <html><head><title>Apache Tomcat/6.0.32 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 400 - Content Server could not process the request</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>Content Server could not process the request</u></p><p><b>description</b> <u>The request sent by the client was syntactically incorrect (Content Server could not process the request).</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.32</h3></body></html>

                {http://xml.apache.org/axis/}HttpErrorCode:400

             

            (400)Bad Request

            • 3. Re: sites webcervice call
              Pgleghorn-Oracle

              Note, the release notes for 11.1.1.6.x states that the old SOAP webservices like these are going away, and won't be maintained

               

              " SOAP based web services are being deprecated, use the public REST API."

               

              The REST API is actively being maintained, and is much much better than the SOAP API was.

               

              Phil