0 Replies Latest reply on Sep 9, 2011 2:13 PM by 766026

    400 Bad Request

    766026
      I have written a web service connector for oracle on demand. It queries the values of for example a contact. It works perfectly with my crmondemand account.

      Now I tried it with another crmondemand account and I got a WstxUnexpectedCharException (i.e. my axis2 was unable to parse the answer from the web service) when doing a simple query. Debugging my software I recovered the original error message(see below, I have replaced the name and password with ******).

      The whole login procedure (single sign on) went without problem. Could this be a problem on the crmondemand server?

      Thank you very much :)

      [<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
      <html><head>
      <title>400 Bad Request</title>
      </head><body>
      <h1>Bad Request</h1UsernameToken><Username>*******</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">******</Password></UsernameToken></Security></Header>actConcatField/><CreatedDate/><Department/><ContactEmail/><ExternalSystemId/><WorkFax/><ContactFullName/><IntegrationId/><LeadSource/><MrMrs/><Manager/><ManagerId/><ModifiedBy/><ModifiedById/><ModifiedDate/><OwnerId/><Private/><AccountName/><PrimaryCity/><PrimaryCountry/><PrimaryZipCode/><PrimaryStateProvince/><NeverEmail/><WorkPhone/><PrimaryCountry/><PrimaryProvince/><CreatedById/><CreatedBy/></Contact></ListOfContact></ContactWS_ContactQueryPage_Input></Body>  -->
              <phase name="OperationOutPhase"/>
              <!--system predefined phase-->
              <!--these phase will run irrespective of the service-->
              <phase name="RMPhase"/>
              <phase name="PolicyDetermination"/>
              <phase name="MessageOut"/>
              <phase name="Security"/>
          </phaseOrder>
          <phaseOrder type="InFaultFlow">
              <phase name="Addressing">
                   <handler name="AddressingBasedDispatcher"
                           class="org.apache.axis2.dispatchers.AddressingBasedDispatcher">
                       <order phase="Addressing"/>
                  </handler>
              </phase>
              <phase name="Security"/>
              <phase name="PreDispatch"/>
              <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase">
                  <handler name="RequestURIBasedDispatcher"
                           class="org.apache.axis2.dispatchers.RequestURIBasedDispatcher"/>
                  <handler name="SOAPActionBasedDispatcher"
                           class="org.apache.axis2.dispatchers.SOAPActionBasedDispatcher"/>
                  <handler name="RequestURIOperationDispatcher"
                           class="org.apache.axis2.dispatchers.RequestURIOperationDispatcher"/>
                  <handler name="SOAPMessageBodyBasedDispatcher"
                           class="org.apache.axis2.dispatchers.SOAPMessageBodyBasedDispatcher"/>
      
                  <handler name="HTTPLocationBasedDispatcher"
                           class="org.apache.axis2.dispatchers.HTTPLocationBasedDispatcher"/>
              </phase>
              <phase name="RMPhase"/>
              <!--      user can add his own phases to this area  -->
              <phase name="OperationInFaultPhase"/>
          </phaseOrder>
          <phaseOrder type="OutFaultFlow">
              <!--      user can add his own phases to this area  -->
              <phase name="OperationOutFaultPhase"/>
              <phase name="RMPhase"/>
              <phase name="PolicyDetermination"/>
              <phase name="MessageOut"/>
              <phase name="Security"/>
          </phaseOrder>
      </axisconfig>haseOrder type="InFlow">
              <!--  System pre-defined phases       -->
               <phase name="Transport">
                  <handler name="RequestURIBasedDispatcher"
                           class="org.apache.axis2.dispatchers.RequestURIBasedDispatcher">
                      <order phase="Transport"/>
                  </handler>
                  <handler name="SOAPActionBasedDispatcher"
                           class="org.apache.axis2.dispatchers.SOAPActionBasedDispatcher">
                      <order phase="Transport"/>
                  </handler>
               </phase>