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
-
i have an ipad 2 the itunes program worked fine at first but now it will not connect to the store. it says 'secure link to itune store failed' i have uninstalled it and reinstalled it. what do i do?
Doublechecking before proceeding. Is iTunes endlessly saying "Accessing iTunes Store"? Or is something a bit different going on?
-
see sentence
This can be caused by corrupted cookies or cookies that are blocked (check the permissions on the about:permissions page).
Clear the cache and cookies only from websites that cause problems.
"Clear the Cache":
*Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
"Remove Cookies" from sites causing problems:
*Firefox/Tools > Options > Privacy > Cookies: "Show Cookies" -
I have bought the wireless keyboard for my iPad. I was working for a day but now the power light won't stay on and as such won't connect to the iPad. I have changed the batteries but still no difference.
Not knowing which wireless keyboard you bought, it is difficult to be specific. but ...
it is quite normal for the keyboard's power light not to stay on - it is a way of conserving battery power.
Try this:
turn you keyboard off
on your iPad go to Settings > Bluetooth
if your keyboard is listed under Devices, then touch the little blue i to its right and choose Forget this Device
now reset your iPad: hold both the Home and Power buttons down for about 10 seconds until the Apple logo appears, let go promptly when the Apple logo appears and wait another 30 seconds for your iPad to turn itself on
After your iPad is back on again go back to Settings > Bluetooth
now turn your keyboard back on and see if it appeard under Now Discoverable
if it doesn't read your keyboard guide to figure out how to put it into Discovery mode
touch the listing for your keyboard under Now Discoverable, it should now appear under Devices
touch the listing for you keyboard under Devices, and choose to pair with it. -
I have Power Mac G5 1.8 single. I have a problem with ethernet port, before it was working with the internet, but now i shows it is connected even the cable is disconnected. I'm running Leopard 10.5. any help
Reset the PRAM.
http://support.apple.com/kb/HT1379
If that fails, reset the PMU.
Scroll down the following page and click the G5 link for instructions:
http://support.apple.com/kb/ht1939 -
My iPhone was working correctly with FaceTime but now it's not , say (waiting for activiation) what should I do ?? Kindly if you can help!!
Thanks for your answer...
My iPhone was connected to a wifi internet when I tried to activate it and when I tried activation by iTunes I was using my laptop with windows 7 which was connected to internet by cable.
I updated my iPhone to IOS 7 when I was in Egypt and I had no problems with updating it and I can't remember if finding my iPhone option was on or off before updating to IOS 7 and as i understood from searching internet that to use iCloud Finder on web from computer to find my iPhone it should be set up already on my iPhone and I didn't set up iCloud on my iPhone before and my Apple ID wasn't verified for iCloud till today, I verfied it by logging in iCloud from a friend iPad.
I was considering already the option that my iPhone has been hacked but if this happened so how I would unlock my iPhone and activate it to back to work? who would help me with that? I'm so tired of being without my phone for almost 4 days and I started to consider not having any Apple product anymore... I think that this way to secure the consumer has a lot of conflicts... -
I bought my iPhone 4s in the Uk and then brought to Cyprus where I live. I used Siri to call my husband 2 days ago without problem but now when I try to use Siri it won't call any local Cypriot number but will call my Uk contacts. I can call the same numbers manually so it's not my network. Any help would be appreciated.
This sounds like an international issue? Although I can not see why? I brought my phone in Australia and operating it in Indonesia, I have the same issues.... Otherwise Siri works fine, even texting (SMS) to local numbers siri works well, but dialing local number it just wont work...! I will try using my Australian SIM card and see if that is the reason.. I tried changing the number in the contacts and took out the international prefix, I turned the international assist on and off still nothing.. How frustrating. I called apple, the technican had know idea and we to his supervisor, had to wait fro 40 miuntes and then I hung up..
PLEASE HELP..! -
Hi, I reecntly purchased a Mac and the Pages App. But now I find that I cant open a document I have been working on. It has previously been saved without a problem now all I get is a box stating that the file cannot be opened. It is visible in both the Pages Windows and under Recent Items but just will not open. Any suggestions please?
Hi Colourdoodles,
Maybe the document is corrupted. Can you open other Pages documents? Preview may open it. Right click (or control click) on the document in Finder and Open With > Preview.
If that works, Edit > Select All, Edit > Copy. Then paste into a blank Pages document. Formatting may be messed up, but you will have editable text. Then Save (with a different name), close and see if you can open the new document.
Regards,
Ian -
I am having problems connecting to home wifi. It was working, but now all I get is a blank white screen. I re-booted with no success.
Hi, blank white screen where exactly?
Make a New Location, Using network locations in Mac OS X ...
http://support.apple.com/kb/HT2712
10.5, 10.6, 10.7 & 10.8…
System Preferences>Network, top of window>Locations>Edit Locations, little plus icon, give it a name.
10.5.x/10.6.x/10.7.x/10.8.x instructions...
System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
The interface that connects to the Internet should be dragged to the top of the list.
If using Wifi/Airport...
Instead of joining your Network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed.
For 10.5/10.6/10.7/10.8, System Preferences>Network, unlock the lock if need be, highlight the Interface you use to connect to Internet, click on the advanced button, click on the DNS tab, click on the little plus icon, then add these numbers...
208.67.222.222
208.67.220.220
(There may be better or faster DNS numbers in your area, but these should be a good test).
Click OK. -
Things have just kind of escalated. We started with the ipad and she really liked it. Then we were given an itv and it worked so nicely with the ipad, that we decided to get her an iphone. We've been buying music, tv shows, movies, taking photos, looking at them on the tv using photostream. But now I'm getting an iphone and plan to by a macbook or mac mini some time soon, and I'm wondering how I can setup my own account but still have all this really nice seamless sharing across devices. If I buy an album on my phone, I'd like to be able to play it on the itv (which is setup with my wifes account). And so forth.
I hope I've explained my concern and someone can point out how to set things up so that things remain as seamless and easy as they are now.
Thanks.Have a look here...
http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
SHARING iTunes MUSIC
http://macmost.com/five-ways-to-share-music-in-itunes.html
Also... Create your Own Apple ID for Your iPhone...
It should be Noted that anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID
Apple ID FAQs > http://support.apple.com/kb/HT5622
And... Have a read here...
https://discussions.apple.com/message/18409815?ac_cid=ha
See Here for > How to Use Multiple iDevices with One Computer
Have a read here...
https://discussions.apple.com/message/18409815?ac_cid=ha -
I’m having an intermittent problem with my midi controllers triggering Mainstage 3.
I’m using a PreSonus Firebox audio interface.
It’s been working fine for months, but now when I first turn on the computer in the morning , I’m not able to trigger MainStage from the keyboard. I tried different midi controllers, different keyboards, different midi cords, and check midi preferences. The audio interface is working fine and is recogonized, but the midi doesn’twork. I re-started the computer several times and then finally it miraculously starts working again.
I’ve been having to this every day now. Any help or ideas is very much appreciated.I Had the same problem with a FireStudio. Try unplugging the FireWire plug and the power plug. Wait for a few seconds, then plug both back in. The light on my FireStudio was flashing blue/red which means "not connecting." I did what I just described, and everything works again. Hope it works for you.
-
I have a macbook pro. i have a photosmart 7510. we just bought a new windows tower and the printer works wireless for us, but now the mac does not print anymore wirelessly. i keep getting a message Network host 'HPE93F2A.local.' is busy. what can i do to
it is a windows 8
-
I have an IPod 2nd generation I bought from a pawn shop. It worked for a day but now when I try to charge it, it keeps switching back and forth from the large full screen icon of a low battery and a lighting bolt below to the blue screen with the apple symbol in the middle. I had it on charge all night but still dead.
Try here.
iPod touch: Hardware troubleshooting
You may have a hardware problem. -
I broke my iPhone 4s screen and display. Siri worked to make calls but now says "Siri not available, connect to the internet". How do I make Siri work again till I get my new phone?
If not connected to the Internet, either through WiFi or 3G, you can't.
-
Paid for export PDF, worked for a while, but now tells me i only have free service so won't convert document
Hi dmkelec,
I did not find your account under the given email id.
Can you provide me the email id associated with your subscription that would be helpful.
Regards,
Florence
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.
-
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?