|
Without seeing your code that calls this service, it's pretty difficult to say what's wrong.
|
|
|
|
|
Thank Dave Kreskowiak
Actually 1st I added web reference from to project by clicking on add web reference tab there it ask username and password I given and it add 2 file to my project one with extinction .discomap and .wsdl to web reference section of my project
After that in .vb file I just import some class of web reference and in page load event I put the code
Dim userId As Integer = service.getUserId("Web")<br />
If userId > 0 Then<br />
Dim userData As UserWS = service.getUserWS(userId)<br />
End If
As soon I run the page am getting the error
is this is ok sir or you want full steeps what I done to add web reference?
Thank you Shiashankar.C
The Value Has Its Value Only Its Value Is Valied
|
|
|
|
|
Do you get the same error if you try to invoke the web service from a browser??
|
|
|
|
|
yes am getting the same
and one thing the web service is in other tomcat server and am accessing from IIS server
thanks
Shivashankar.c
The Value Has Its Value Only Its Value Is Valied
modified on Thursday, March 27, 2008 5:23 AM
|
|
|
|
|
hi
Am not discouraging you from using Java, but now its not a Problem doing what you doing, the thing is that your web service is written in Java and you want to call it in .NET, why dont you write your web services in any .NET languages, its easy. lets see your java code and the lets see how you re using it in .NET, but remember this is not a Java Forum. i suggest you lern any .NET language if you dont know one , because its the Future. C# might be a Good Choce,
hope it helps
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Hi Vuyiswa
Web service is not re by it is the service of some external web site my client given me n he want to invoke that service in our site
That web service is just to generate some reports from which they want to generate their reports
The web service is added successfully not a problem in that but when I call any function from web service am getting error.
Thanks Shivashankar.CThe Value Has Its Value Only Its Value Is Valied
|
|
|
|
|
Show me the full step code i will give you the solution
thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
These are the steps followed to add reference
URL: http://billing.rephero.com/jboss-net/services/billing?wsdl prompts for “Axis basic authentication” the screen looks as below
Step 2: in Axis basic authentication dilog box i entered username and password and clicked ok after that it asks for some confirmation
Step 3: Confirmation message is “The server need to authenticate your credentials will be sent to the server in clear “text”
Step 4: After confirming yes am getting “discovery credentials” dialog box It accepts username password and domain name. If i give domain name reference is not getting added but without giving a domain name if clicked Ok then it adds reference successfully.
This is what the code we are using to invoke the jBilling functions
Imports JBillingWebReff<br />
Imports com.rephero.billing<br />
Imports com.rephero.billing.UserWS<br />
<br />
Partial Class JBillingWebReff<br />
Inherits System.Web.UI.Page<br />
Dim service As New WebServicesSessionLocalService()<br />
<br />
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load<br />
Dim userId As Integer = service.getUserId("Web")<br />
If userId > 0 Then<br />
Dim userData As UserWS = service.getUserWS(userId)<br />
End If<br />
End Sub<br />
End Class
Thanks
Shivashankar.c
The Value Has Its Value Only Its Value Is Valied
|
|
|
|
|
You may need to pass the credentials...
service.Credentials = New NetworkCredentials(........)
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
hi wuyiswa
ya but i don no how to add credentials can u please help how to add credentials
one thing the web service is in diffrent server but am working in another server so
and am not directly working in server
just developing the code and uploading the component to server
Please help me how to add credentials.
The Value Has Its Value Only Its Value Is Valied
|
|
|
|
|
I just showed you. You should be able to set the .Credentials property.
service.Credentials = new NetworkCredentials("user", "pass")
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
HI Vuyiswa
Thank you sir now the error is get fixed
Now I get it but am getting another error
The request failed with HTTP status 505: HTTP Version Not Supported. <br />
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. <br />
<br />
Exception Details: System.Net.WebException: The request failed with HTTP status 505: HTTP Version Not Supported.<br />
<br />
Source Error: <br />
<br />
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. <br />
<br />
Stack Trace: <br />
<br />
<br />
[WebException: The request failed with HTTP status 505: HTTP Version Not Supported.]<br />
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +551137<br />
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +204<br />
com.rephero.billing.WebServicesSessionLocalService.getUserId(String in0) +79<br />
JBillingWebReff.Page_Load(Object sender, EventArgs e) +102<br />
System.Web.UI.Control.OnLoad(EventArgs e) +99<br />
System.Web.UI.Control.LoadRecursive() +47<br />
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436<br />
<br />
<br />
<br />
<br />
--------------------------------------------------------------------------------<br />
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
I think the service is not supporting for http: let me check.
but thanks u again
can i have ur contact (EMail or Ph) personally
Thanks
Shivashankar.c
The Value Has Its Value Only Its Value Is Valied
|
|
|
|
|
Am Glad i helped you, let me check this Error, my e-mail is Vuyiswam@tshwane.gov.za
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
A 505 is supposed to contain the reason for not supporting the request. Oh well, that's the world of Java for you. Start stepping through your code. Find out which line the code errors out on. Is it getUserId() or getUserWs?
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
HI Vuyiswa
i think it is the error am getting becouse the service is not Supporting here the document they have given
-------------------------------------------------
Notice that there is already a section to force HTTPS, but it is commented. Uncomment
the section to force HTTPS:
<!--
This is needed to secure web service over SSL
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
-->
It will use the SSL certificate that tomcat is using to secure the standard web client.
-------------------------------------------------------
are you thinking this is not the reason for what am getting error
Thanks
Shivashankar.C
The Value Has Its Value Only Its Value Is Valied
modified on Thursday, March 27, 2008 7:08 AM
|
|
|
|
|
Hi
Vuyiswa
I Checked in https but their also am getting same error
when I remove all the code except credential then I did not get any error after that I changed my privies code to
Imports JBillingWebReff<br />
Imports com.rephero.billing<br />
Imports com.rephero.billing.UserWS<br />
Imports com.rephero.billing.WebServicesSessionLocalService<br />
<br />
Partial Class JBillingWebReff<br />
Inherits System.Web.UI.Page<br />
<br />
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load<br />
Dim service As WebServicesSessionLocalService = New WebServicesSessionLocalService()<br />
Dim userName As String = "jbajin"<br />
service.Credentials = New Net.NetworkCredential("webapp", "r3ph3r0-b1ll1ng")<br />
Dim userIdParams As String = "jbajin"<br />
Dim result As String<br />
result = service.getUserId(userIdParams)<br />
<br />
Response.Write(result)<br />
<br />
End Sub<br />
End Class<br />
this is first time am working with this type of web service(java) please help me
Thank you
Shivashankar.C
The Value Has Its Value Only Its Value Is Valied
|
|
|
|
|
I am fetching 50,000 records from database.when records are fetched it tooks some time.I want to add a button named stop in application , so that when user clicks that button,app will stop.But this will show while fetching records.
Hope u understand my problem.
Any help will greatly be appreciated.
Thanks
|
|
|
|
|
First of all, 'help' is hardly a unique subject line. Everyone here wants help.
To do this at all, you need to make your DB call in another thread. Then you can kill that thread if you want to, but you won't be able to use the built in stuff to cancel the thread, because what you want to cancel is a single action, you'd need to find a more nasty way of doing it ( such as killing the thread ).
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Firstly tell us how you fetch those records and where are you displaying those records , the problem might be the way you display them.please show the code where you retrieve your data.
thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
I am able to create a table with some columns in an Excel file & I can add or read data from those columns. But when I try to add a new column (NewInfo) with the following codes ... I had an error "Invalid operation" after line cmd.CommandText = "ALTER TABLE ..."
<br />
Dim conn1 As New System.Data.OleDb.OleDbConnection(m_sConn1)<br />
conn1.Open()<br />
<br />
Dim cmd As New System.Data.OleDb.OleDbCommand()<br />
cmd.Connection = conn1<br />
<br />
cmd.CommandText = "ALTER TABLE EmployeeData ADD NewInfo VARCHAR(20) NULL"<br />
<br />
cmd.ExecuteNonQuery()<br />
conn1.Close()<br />
Might someone show me what is wrong?
Thank in-advance
|
|
|
|
|
ATC wrote: cmd.CommandText = "ALTER TABLE EmployeeData ADD NewInfo VARCHAR(20) NULL"
cmd.ExecuteNonQuery()
conn1.Close()
Might someone show me what is wrong?
The Excel driver doesn't support the "ALTER TABLE" SQL statement. You have to add the columns using the Excel object model.
|
|
|
|
|
Thank for the explaination, now I know why it has not work!
Would you kindly provide some links to use the Excel object model. I appreciate a lot!
Many thanks
|
|
|
|
|
|
Hi,
I'm trying to save save a user preference via a cookie. This should be simple, right? Not!
To set the cookie, I use the following code:
Response.Cookies("TestCookie").Value = "test"
Response.Cookies("TestCookie").Expires = DateTime.Now.AddYears(30)
I then have another page - in the same project and domain - where I try to retrieve the cookie:
response.write("Cookie value is: " & Response.Cookies("TestCookie").Value)
This returns a null value for the cookie.
What am I doing wrong?
Thanks,
Kevin
|
|
|
|
|
First you should check wether the browse supports cookies and has cookies enabled
If Request.Browser.Cookies Then
Then you should check wether the cookie is available, or if you want to create a new cookie... create a cookie
' Create a new cookie<br />
HttpCookie hcMyCookie = new HttpCookie("TextCookie", "test")<br />
' set expiration date<br />
hcMyCookie.Expires = DateTime.Now.AddMonths(1)<br />
Now you have your cookie, but don't forget to send it back to the visitor...
Response.Cookies.Add(hcMyCookie)
And then close the 'If' section
End If
|
|
|
|