on 05-08-2009 8:23 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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..
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
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
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
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,
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
100 | |
11 | |
10 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.