473,395 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Web Service migration question

I built a ws locally takes in a request object and returns a response object.
The ws reads in a good sized xml file and the request oject has elements
used to create an xml subset and returns it as a response object. Use
XSD.EXE to create proxy classes. I built WSDL and it is stored same location
as ws asmx file. WS runs fine locally. It is using SOAP. I get userid and
authentication TRUE on local testing. Client gets good response object.

I had some issues using server side. Client reached it (my server side
logging says it fired ws up). But it can't detect UserId or isAuthenticated
settings and it says XML doc has problems. So I rebuilt XSD, proxy classes,
and wsdl on the server.

There is an error in XML document (0, 0).
Apr 30 '07 #1
4 2383
Hi Doug,

From your description, you have an ASP.NET based webservice that will
accept and return some custom defined class objects(follow your own xml
schema), the webservice can be consumed correctly locally, but fail when
accessing remotely, correct?

As for the "UserId or isAuthenticated" is it any IIS or ASP.NET specific
authentication or your own custom authentication in the webservice request
schema definition? So far I'm still not very clear about your webservice's
detailed code logic and deployment scenario. Would you provide some further
info on this?

** Your webservice's code logic(such as soap message schema)
** your webservice's deployment scenario(security ...)
** How to consume the webservice through remote client and any different
from the approach you visit it locally

Also, please feel free to let me know if there is anything I misunderstand.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.



May 1 '07 #2
I'm using lots of defaults/provided features. I don't actually see any
"soap" headers, but I turned off Soap12 and issued requests from test client
using both Soap11 and Soap12 and Soap11 worked and Soap12 failed - couldn't
parse it.

Custom classes built from XSD. Early binding seems to be behaving fine on
both WS and Client sides using these objects.

When I run WS locally (invoked from within instance of IDE) and then invoke
Test Client (invoked from within second instance of IDE) this all works.

When running on IIS server, I can bring up WS to get the default
ServiceDescription page. Looks okay.

When I invoke Test aspx page on server it gets error back. I create an
instance of the Request object and prior to invoking WS I save request to XML
file and it looks fine.

I will try to answer your questions:
** Your webservice's code logic(such as soap message schema)
<WebMethod(Description:="Returns one or more deposit rates based
upon request values", EnableSession:=False)_
Public Function getRates(ByVal Request As RequestObject.RATEDOC) As
ResponseObject.RATEDOC

sUser = Me.User.Identity.Name ' This is empty when run from test server
If Me.User.Identity.IsAuthenticated Then ' this is false when run from
test server
May 1 '07 #3
Thanks for your reply Doug,

So the problem is after you deploy the WS into IIS virtual dir. So far I
haven't any definite clues on what could cause this problem. But I think
you can try the following things also:

1.add a very simple and typical webservice endpoint in y our WS project and
consume it in both development environment(IDE) and IIS host to see whether
it suffer the same problem.

2.Use some http or tcp trace utility to capture the soap request/response
message(raw xml) and compare the one in development environment with in IIS
host scenario to see whether there is any difference.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.


May 4 '07 #4
Hi Doug,

How are you doing on this issue, have you got any progress? Please feel
free to post here if there is still anything we can help.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.


May 8 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Dave | last post by:
We are trying to migrate a MS SQL server app to DB2 8.1 Linux platform. Our database has got about 300+tables with total size - 150 GB We are using MS SQL's BCP utility to extract data from...
20
by: Moty Michaely | last post by:
Hello, Can anyone please help me finding a good way to develop a c# winforms application client for a pre-developed windows service? Should I use wse2 with tcp protocol? Bu I still have win98...
5
by: benjamin_kohler | last post by:
hi, if have the following scenario: I have a winform client which communicates with a web service method that supports session (EnableSession=true), so a cookie is created for this client after...
60
by: Shawnk | last post by:
Some Sr. colleges and I have had an on going discussion relative to when and if C# will ever support 'true' multiple inheritance. Relevant to this, I wanted to query the C# community (the...
3
by: Crash | last post by:
VS 2003 ..NET 1.x Windows 2000 SP4 Hi all, We recently migrated a data center containing several database and ASP web service servers. We have a Windows Forms application that runs on 200+...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.