473,419 Members | 1,662 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,419 software developers and data experts.

webservice. using dime with wse2

Ero
Hello,

I have a simple webmethod to send Dime attachments using WSE 2 :

[WebMethod]

public void CreateDimedImage()

{

SoapContext respContext = ResponseSoapContext.Current; // the problem is
here. I always have ResponseSoapContext.Current = null.

DimeAttachment dimeAttach = new DimeAttachment("image/gif",
TypeFormat.MediaType, "C:\\temp\\help.gif");

respContext.Attachments.Add(dimeAttach);

}

when I try to trace this method I see ResponseSoapContext.Current as
<undefined value>.

when I try to access method using client application, I get Exception:

An unhandled exception of type 'System.Web.Services.Protocols.SoapException'
occurred in system.web.services.dll

Additional information: System.Web.Services.Protocols.SoapException: Server
was unable to process request. ---> System.NullReferenceException: Object
reference not set to an instance of an object.
at WSPrototechnika.DimeService.CreateDimedImage() in
c:\inetpub\wwwroot\WSPrototechnika\DimeService.asm x.cs:line 68
--- End of inner exception stack trace ---

I included this to my web.config :

<soapExtensionTypes>
<add type="Microsoft.Web.Services2.WebServicesExtension ,
Microsoft.Web.Services2,Version=2.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"
priority="1" group="0"/>
</soapExtensionTypes>
I heard this can happen because of some security restriction. If so, how can
I check this?
Nov 17 '05 #1
0 1058

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

Similar topics

0
by: Willem | last post by:
Hi, I'm not sure if this is the right place for my question, but I am having some problems with webservices. I am trying to use classic asp to consume a webservice that requires DIME messages...
1
by: ffhansix | last post by:
Hi, I am having problems with generating a c# proxy class from a IBM websphere WSDL file, when running the wsdl.exe to create the c# proxy file command i recieve an error: Warning: one or...
4
by: Vai2000 | last post by:
Hi All, I have a Websvc which exposes a method for validation. The validation string coming in is significantly large at times....sometimes close to 20MB. Due to this my aspnet_wp.exe is hogging...
7
by: Q. John Chen | last post by:
All, I have a WebService created in .NET. I have VB6 Client consume the WebService (using Soap ToolKit 3.0) But I have couple user who got error accessing the WebServer with error message...
1
by: nissiml | last post by:
hi. I've build a web service and i want that all the clients of the service know that a specific event occured at the server , my question is there a way to do it ? nissiml.
4
by: Sean Feldman | last post by:
Hello, I've installed WSE2 and succedded to download from WebService DataTable object, but can't do the oposite. Anyone can help please? Thanks a lot!
2
by: Sean Feldman | last post by:
Hi, I'm trying to upload a large binary object from Desktop c# application as an attachement (DIME) to web service, but fail with HTTP error 400 (invalid request or something) just before sending...
0
by: andreas.baus | last post by:
Hello. I'm trying to build a client using .NET/C# that is capable of communicating with an existing Webservice written in Java using Apache Axis. Now, I've encountered a problem trying to...
2
by: =?Utf-8?B?TWFoZXNoIFJlZGR5?= | last post by:
i have a secured webservice implemented using WSE2.0, also i have added a soap extention to it for removing certain header information. now my problem is, i am not able to access another unsecured...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.