Program work before, without change but now web service get 400 bad request

i wrote a program to get data by java, using axis library, but recently, the program cannot access the data.
And it return a 400 bad request.
i tried to cap the header and context send out,result as below,
Content-Type=text/xml; charset=UTF-8
SOAPAction="document/urn:crmondemand/ws/user/10/2004:UserQueryPage"
User-Agent=Axis2
Host=(server address)
Transfer-Encoding=chunked
context
<?xml version="1.0" encoding="UTF-8" ?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns2:UserWS_UserQueryPage_Input xmlns:ns2="urn:crmondemand/ws/user/10/2004">
<ns2:UseChildAnd>false</ns2:UseChildAnd>
<ns2:PageSize>100</ns2:PageSize>
<ListOfUser xmlns="urn:/crmondemand/xml/user">
<User>
<UserId />
<Alias />
<EMailAddr />
<FirstName />
<LastName />
</User>
</ListOfUser>
<ns2:StartRowNum>0</ns2:StartRowNum>
</ns2:UserWS_UserQueryPage_Input>
</soapenv:Body>
</soapenv:Envelope>
other http request information cap:
getAuthType= null
getCharacterEncoding= UTF-8
getContentLength= -1
getContentType= text/xml; charset=UTF-8
getCookies= null
getLocale= zh_HK
getMethod= POST
getPathInfo= null
getProtocol= HTTP/1.1
getQueryString= null
getRemoteUser= null
getRequestURI= /Integration
getRequestURL= http://(server address and port)/Integration (https for real case, but to cap using http)
getServletPath= /Integration
getUserPrincipal= null
i cannot find out the reason to make the program not work, as i have not change any code and library
Edited by: user6642894 on 2009/3/23 上午 1:24
Edited by: paddy_yeung on 2009/3/23 下午 8:33

Check the security mode, it should be “TransportCredentialOnly” and the clientCredentialType “NTLM” as shown in the blog post
http://blogs.msdn.com/b/kaevans/archive/2009/03/10/calling-sharepoint-lists-web-service-using-wcf.aspx
The other option is to add the service as
Web Reference and not as Service Reference.
In your ‘Add Service Reference’ window, click on ‘Advanced’ and choose ‘Add Web Reference’ – I prefer this for ASMX web services which makes it much easier.

Similar Messages

Maybe you are looking for

  • Synchronization order of the Sync BO's

    Hi All, Can any body tell me where can we set the order for synchronization either in Middleware or in Client. We are having some problems with this order. We are working with standard MAM30 application. Here our scenario is we are creating time conf

  • User defined G/L Account Can't see in Balance sheet

    Hi, i have created one User defined G/L Account in Assets and also assign opening balance to it. But at a time during balance sheet view, user defined G/L Account cannot see.. How can i see this User Defined G/L Account in balance sheet.... Plz...Vie

  • Help in running top comman in java

    hi frineds i want to run top command in java and store tht input into a file....any pls give suggestions.i will be thank full to u. bye keerthi.

  • Login problem - Vista laptop

    Hi everyone. I've just spent an unproductive morning with a friends laptop, and really would appreciate some pointers just what to try next as I'm now completely bewildered. The main problem is that it won't log into the BTinternet, the username / pa

  • Flash animated text gif viewed in Fireworks

    CS3 flash text saved as gif animated and viewed in firework text is display as a big dark blob. Is there a way to type the text so it can be shown clearly and viewed in fireworks without the blob as an animated gif. Is thre a better way to do this?