org.apache.axis2.AxisFault: The User Profile Manager object could not be 
loaded. ---> Value cannot be null
----------------------------------------------------------------------------------------------------------

                 Key: AXIS2-3140
                 URL: https://issues.apache.org/jira/browse/AXIS2-3140
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: wsdl
    Affects Versions: 1.1.1
         Environment: windows
            Reporter: Amit Agrawal


When the generated stub (for UserProfileService.wsdl) processes response, I get 
following error

<error>
org.apache.axis2.AxisFault: The User Profile Manager object could not be 
loaded. ---> Value cannot be null.
Parameter name: serverContext
</error>

when I use the endpoint URL with fully qualified domain e.g. 
http://ps4312.persistent.co.in:43386/_vti_bin/UserProfileService.asmx , But 
when endpoint URLis specified without fully qualified domain e.g. 
http://ps4312:43386/_vti_bin/UserProfileService.asmx, we do not get the error. 

the part of code where the cal fails is:
try {
      org.apache.axis2.client.OperationClient _operationClient = _serviceClient
        .createClient(_operations[31].getName());
      _operationClient
        .getOptions()
        .setAction(
          
"http://microsoft.com/webservices/SharePointPortalServer/UserProfileService/GetUserProfileByIndex";);
      _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);



      // create SOAP envelope with that payload
      org.apache.axiom.soap.SOAPEnvelope env = null;

      // Style is Doc.


      env = toEnvelope(getFactory(_operationClient.getOptions()
        .getSoapVersionURI()), param62,
        optimizeContent(new javax.xml.namespace.QName("",
          "GetUserProfileByIndex")));

      // adding SOAP headers
      _serviceClient.addHeadersToEnvelope(env);
      // create message context with that soap envelope
      org.apache.axis2.context.MessageContext _messageContext = new 
org.apache.axis2.context.MessageContext();
      _messageContext.setEnvelope(env);

      // add the message contxt to the operation client
      _operationClient.addMessageContext(_messageContext);

      // execute the operation client
      _operationClient.execute(true);  //FAILS HERE !!!

 




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to