question

zjwmall avatar image
0 Likes"
zjwmall asked ·

about Business Policies Management API call set

Dim service As New business_policies.SellerProfilesManagementService Dim ul As String = "" ul += " https://svcs.ebay.com/services/selling/v1/SellerProfilesManagementService" ul += "?X-EBAY-SOA-OPERATION-NAME=getSellerProfiles" ul += "&X-EBAY-SOA-SERVICE-NAME=SellerProfilesManagementService" ul += "&X-EBAY-SOA-SERVICE-VERSION=1.0.0" ul += "&X-EBAY-SOA-SECURITY-TOKEN=" & token ul += "&X-EBAY-SOA-RESPONSE-DATA-FORMAT=xml" 'ul += "&REST-PAYLOAD" ' ul += "&Standard input fields" ' ul += "&Call-specific input fields" service.Url = ul service.SoapVersion = Web.Services.Protocols.SoapProtocolVersion.Default service.RequestEncoding = Encoding.GetEncoding("utf-8") Dim request As New business_policies.GetSellerProfilesRequest Dim response As business_policies.GetSellerProfilesResponse = service.getSellerProfiles(request) show error:Authentication failed : Missing required credential for authn method Can someone help me example of how to set up ,thanks
business policies management api
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jourbandts avatar image
0 Likes"
jourbandts answered ·
I use headers instead of putting everything in the URL. My sample is for C# but I am sure you can translate BasicHttpBinding binding = new BasicHttpBinding(BasicHttpSecurityMode.Transport); binding.MaxReceivedMessageSize = int.MaxValue; binding.ReaderQuotas.MaxStringContentLength = int.MaxValue; SellerProfilesManagementServicePortClient client = new SellerProfilesManagementServicePortClient( binding, new EndpointAddress(" https://svcs.ebay.com/services/selling/v1/SellerProfilesManagementService")); MessageHeader header = MessageHeader.CreateHeader("CustomHeader", "", ""); using (OperationContextScope scope = new OperationContextScope(client.InnerChannel)) { OperationContext.Current.OutgoingMessageHeaders.Add(header); HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty(); httpRequestProperty.Headers.Add("X-EBAY-SOA-OPERATION-NAME", "getSellerProfiles"); httpRequestProperty.Headers.Add("X-EBAY-SOA-SECURITY-TOKEN", "xxx"); httpRequestProperty.Headers.Add("X-EBAY-SOA-GLOBAL-ID", "EBAY-US"); httpRequestProperty.Headers.Add("CONTENT-TYPE", "text/xml"); OperationContext.Current.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty; GetSellerProfilesRequest request = new GetSellerProfilesRequest(); request.includeDetails = true; GetSellerProfilesResponse response = client.getSellerProfiles(request);
·
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

zjwmall avatar image
0 Likes"
zjwmall answered ·
Thank you very much..If allowed to (I want kiss you) haha.. . find the answer for a week !Today was finally over again thanks! great jourbandts
·
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

zjwmall avatar image
0 Likes"
zjwmall answered ·
jourbandts ,thanks you reply i upload 2 photo,pls see ![alt text][1] Mytoken some characters i change ASCII I try firefox open the link is ok: ul= https://svcs.ebay.com/services/selling/v1/SellerProfilesManagementService? X-EBAY-SOA-OPERATION-NAME=getSellerProfiles &X-EBAY-SOA-GLOBAL-ID=EBAY-US &X-EBAY-SOA-SECURITY-TOKEN=Mytoken but vb.net i use wsdl is failure: ![alt text][2] Dim service As New business_policies.SellerProfilesManagementService service.Url = ul Dim request As New business_policies.GetSellerProfilesRequest Dim response As business_policies.GetSellerProfilesResponse How is tip: Authentication failed: Missing required the credential for authn metho pls help me ...... i need how do change the code [1]: /storage/temp/289-qq图片20141029010159.jpg [2]: /storage/temp/290-qq截图20141029010251.jpg

·
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jourbandts avatar image
0 Likes"
jourbandts answered ·
Looks like it has something to do with your token. Make sure you are using the correct environment, sandbox or production. And make sure the token you are using matches the environment.
·
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.