cancel
Showing results for 
Search instead for 
Did you mean: 

B1WS:The request failed with HTTP status :404 File not found

Former Member
0 Kudos

Hi,

when i am trying to run sample code of B1WS ,i am getting this error.i am getting same error for web and windows based sample.

Can any one help me regarding this error.How to add web references when we are doing new .net project

Thanks in advance,

OmPrakash.

Accepted Solutions (1)

Accepted Solutions (1)

YatseaLi
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello OmPrakash,

Have you done the configuration? Please refer to the document

<<C:\Program Files\SAP\SAP Business One Web Services\B1WS.doc>>

=>Configuration

=>How to develop using B1WS in a .NET environment

Make sure IIS is running in B1WS server. because B1WS is deployed in IIS

Can you try to open the following link.

http://YourServerName/B1WS/WebReferences/BusinessPartnersService.wsdl

or you can follow the steps:

1.Right cliek "My Computer"=>click Manage=>Service and Applicaiton=>IIS

2.IIS=>WebSite=>Default WebSite=>B1WS=>WebReference (double click)

make sure B1WS virtual fodler is there

3.Right click "BusinessPartnersService.wsdl" and click browse

make sure the wsdl file can be browsed.

How to add web references when we are doing new .net project?

Right click the project=>Add Web Reference=>Browse to "Web services on the local machine"

either you can provide the exact URL for the service.

Kind Regards, Yatsea

Former Member
0 Kudos

Hi,

I have done all the configuration as B1ws document.I did not understand how to check in

1.Right cliek "My Computer"=>click Manage=>Service and Applicaiton=>IIS

2.IIS=>WebSite=>Default WebSite=>B1WS=>WebReference (double click)

make sure B1WS virtual fodler is there

3.Right click "BusinessPartnersService.wsdl" and click browse

make sure the wsdl file can be browsed.

can u pls explain again..

Former Member
0 Kudos

are you able to see the wsdl from the browser like the Yatesa said?

YatseaLi
Product and Topic Expert
Product and Topic Expert
0 Kudos

Helllo there,

Can you open the following link with browser (IE etc)?

http://YourServerName/B1WS/WebReferences/BusinessPartnersService.wsdl

Please replace YourServerName as your server name or ip address.

Regards, Yatsea

Former Member
0 Kudos

Hi Yatsea,

I have replaced your link with this,

http://1DTWN0027/B1WS/WebReferences/BusinessPartnersService.wsdl

or

http://192.168.0.156/B1WS/WebReferences/BusinessPartnersService.wsdl

I have tried with both server name and IP ,when i typed this on browser its saying " Page can't be displayed File missing".

Help me..

Thanks

OmPrakash

YatseaLi
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello OmPrakash,

Ok, I think the problem is B1WS not added to IIS during the installation.

You may try the following step tos add it in IIS by manual.

1.Right click "My Computer"=>click "Manage"=>choose "Service and Applicaiton"=>Internet Information Service

2.choose WebSite=>click Default WebSite, right click and choose "new"=>virtual directory

3.Following the Vitural Directory Wizard

Alias: B1WS

Directory: browse to B1WS installation folder, e.g. "C:\Program Files\SAP\SAP Business One Web Services\B1WS"

Use the default settings for the other configurations.

Finally, try the browse the wsdl again.

http://1DTWN0027/B1WS/WebReferences/BusinessPartnersService.wsdl

Kind Regards, Yatsea

Former Member
0 Kudos

Hi Yatsea,

Thanks a lot problem is solved.

Former Member
0 Kudos

Hello Yatsea,

I am running the sample code of B1WS on VS 2010 and MSSQL2008

I have followed all the instruction in the B1WS document.

but somehow the sample code still doesnt work with error 404: object not found.

Could you please advise?

Note: I can access the wsdl file from the browser

and I can also add those as web reference into the application

thanks,

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi, I tried all instructions explained with following link

but i am getting following output when i tried to browse using FF browser

This XML file does not appear to have any style information associated with it. The document tree is shown below.

u2212

<env:Envelope>

u2212

<env:Body>

u2212

<env:Fault>

u2212

<env:Code>

<env:Value>env:Sender</env:Value>

</env:Code>

u2212

<env:Reason>

<env:Text xml:lang="en">Invalid XML</env:Text>

</env:Reason>

u2212

<env:Detail>

u2212

<ErrorList>

u2212

<Error>

System Id = 64090936, Line Number = 1, Column Number = 40, Description = Invalid document structure

</Error>

</ErrorList>

</env:Detail>

</env:Fault>

</env:Body>

</env:Envelope>

ERROR

Any Clue?

Edited by: kolkolta on Nov 2, 2010 8:05 AM

Former Member
0 Kudos

I'm experiencing the same problem.

I've performed the install and configuration steps, twice, that are in the Word Document and it still can not find the $metadata files for the wsdl files.

In Visual Studio I can select to add a web service. Then I can select "Web services on the local machine" and it will show me a list of the services. But clicking on any of the links results in the same type of error message as follows:

There was an error downloading 'http://localhost/B1WS/WebReferences/ApprovalStagesService.wsdl'.

The request failed with HTTP status 404: Object Not Found.

There was an error downloading 'http://localhost/B1WS/WebReferences/ApprovalStagesService.wsdl/$metadata'.

The request failed with HTTP status

Also, if I enter the link for the wsdl file in a browser address bar it dumps out the contents of the wsdl file in the browser window.

It seems like IIS is not processing the wsdl file.

Former Member
0 Kudos

I fixed the issue I was having.

My Default Web Site was setup to use my static IP address and not (All Unassigned). Changing it to (All Unassigned) fixed the problem. Now localhost will also display the contents of the wsdl file and Visual Studio can now map to the methods within the wsdl files.

Former Member
0 Kudos

Hi Joel,

My Default Web Site was setup to (All Unassigned) only but my problem is not solved.. can u suggest me..?

Thanks,

OmPrakash