cancel
Showing results for 
Search instead for 
Did you mean: 

The remote server returned an error: (401) Unauthorized

n007praveen71
Participant
0 Kudos

Hello Experts,

I have successfully created a scenario for my UDO in b1if via web service method and aumatically generated inbound.xsd outbound.xsd and also the WSDL file as well from the setup of my scenario. i Activated the scenario and copied the WSDL url :

http://testsrv:8080/B1iXcellerator/exec/webdav/com.sap.b1ip.system.editor/bfd/xmledit.bfd?!uri=../.....

when i consume this url in my website project in .net visual studio 2010 by Add service reference method i get a error like this:

The document at the url http://testsrv:8080/B1iXcellerator/exec/webdav/com.sap.b1ip.system.editor/bfd/xmledit.bfd?!uri=../..... was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'XML Schema' is 'The root element of a W3C XML Schema should be <schema> and its namespace should be 'http://www.w3.org/2001/XMLSchema'.'.
- Report from 'DISCO Document' is 'Discovery document at the URL http://testsrv:8080/B1iXcellerator/exec/webdav/com.sap.b1ip.system.editor/bfd/xmledit.bfd?!uri=../..... could not be found.'.
  - The document format is not recognized.
- Report from 'WSDL Document' is 'There is an error in XML document (1, 40).'.
  - <bizflow2 xmlns='urn:com.sap.b1i.bizprocessor:bfdefinition'> was not expected.
Metadata contains a reference that cannot be resolved: 'http://testsrv:8080/B1iXcellerator/exec/webdav/com.sap.b1ip.system.editor/bfd/xmledit.bfd?!uri=../../com.sap.b1i.vplatform.scenarios.setup/vPac.Z.WSNew/001sap0003_Z.WSNew.wsdl&xsrf.id=0564f24357de438c4273ed92d0224a62ecf62e53'.
The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Basic realm="B1iP_webdav"'.
The remote server returned an error: (401) Unauthorized.
If the service is defined in the current solution, try building the solution and adding the service reference again.

I tried downloading the WSDL file and added it from locally but i couldnt give configuration.svc info .
im very new at this please help me add my service in my website project.

thank you in advance

Accepted Solutions (0)

Answers (0)