mibuso.com

Microsoft Business Solutions online community
It is currently Sat May 25, 2013 3:57 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Webservice- Posting Sales Order
PostPosted: Fri Jul 20, 2012 4:08 pm 
Offline

Joined: Thu Aug 12, 2010 1:45 pm
Posts: 77
Location: Mumbai
Country: India (in)
I am trying to post a sales order through webservice(codeunit) from ASP.net project. It works on localhost it doesnt work on the webserver. It does not even show any exception in the try catch block. Anyone faced the same issue?? I am not sure what the issue is, any ideas??


Top
 Profile E-mail  
 
 Post subject: Re: Webservice- Posting Sales Order
PostPosted: Fri Jul 27, 2012 4:13 am 
Offline

Joined: Fri Jul 20, 2012 11:08 pm
Posts: 14
Country: United States (us)
i've had to overcome this issue a while back.

both problems may not be the same but here are some things to check.
eventually you will narrow it down.

nothing in try catch. i hate it when that happens.
double check your initialization settings on your services code
double check your credentials code (especially the DOMAIN pointer). there's more than one way to specify a domain. if the name doesn't work try the ip addy.
double check the url services pointers in web.config
double check the settings in the config file in the dynamics folder on the app server (i can't recall the name of the file right now)
make sure your ports are all opened properly 7047, 7049, etc.
make sure your webserver and the app server can talk.
--if they are on the same network then it won't be much of a problem
--if its on another network, you may have to create a trust relationship between the two networks so the credentials passed are accepted.
check the error log on the app server for failed login attempts or other errors which might point you in the right direction.
make sure your proxy credentials in sql server work outside of your project. use sql manager from your localhost to validate your credentials.
worse case scenario, download wireshark and get to sniffin some packets!


Top
 Profile E-mail  
 
 Post subject: Re: Webservice- Posting Sales Order
PostPosted: Thu Aug 02, 2012 12:38 pm 
Offline

Joined: Mon Apr 04, 2005 3:49 pm
Posts: 72
Location: Sauðárkrókur
Country: Iceland (is)
You will also need to make sure that dialogs and messages are not used. That requires a change to the standard codeunit 80.

_________________
________________________________
Gunnar Gestsson
Microsoft Certified IT Professional
http://www.dynamics.is


Top
 Profile E-mail WWW  
 
 Post subject: Re: Webservice- Posting Sales Order
PostPosted: Fri Sep 14, 2012 1:26 pm 
Offline

Joined: Thu Aug 12, 2010 1:45 pm
Posts: 77
Location: Mumbai
Country: India (in)
The problem was with the service initialization. I was doing an initialization in every function within the same class. A single initialization resolved the issue. Strange but it worked!!


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: fahd and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: