473,785 Members | 2,969 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

webservice. using dime with wse2

Ero
Hello,

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

[WebMethod]

public void CreateDimedImag e()

{

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

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

respContext.Att achments.Add(di meAttach);

}

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

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

An unhandled exception of type 'System.Web.Ser vices.Protocols .SoapException'
occurred in system.web.serv ices.dll

Additional information: System.Web.Serv ices.Protocols. SoapException: Server
was unable to process request. ---> System.NullRefe renceException: Object
reference not set to an instance of an object.
at WSPrototechnika .DimeService.Cr eateDimedImage( ) in
c:\inetpub\wwwr oot\WSPrototech nika\DimeServic e.asmx.cs:line 68
--- End of inner exception stack trace ---

I included this to my web.config :

<soapExtensionT ypes>
<add type="Microsoft .Web.Services2. WebServicesExte nsion,
Microsoft.Web.S ervices2,Versio n=2.0.0.0, Culture=neutral ,
PublicKeyToken= 31bf3856ad364e3 5"
priority="1" group="0"/>
</soapExtensionTy pes>
I heard this can happen because of some security restriction. If so, how can
I check this?
Nov 17 '05 #1
0 1077

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

Similar topics

0
1499
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 for input. The dime messages contain xml data and sometimes jpeg images. My problem is to generate the DIME messages. I can generate xml using my asp page, the only problem is to transform this into a DIME message. Are there any (custom)...
1
9905
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 more operations were skipped. Warnings were encountered. Review generated source comments for more details.
4
6950
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 memory exorbitantly... aspnet_wp.exe mem usage goes to 500MB sometimes...on the server. I am a bit worried about this....Can you guys suggest some design paradigms or other tips for resolving this issue... 1. Is it OK to pass 20MB data in string...
7
5930
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 "Unable to handle request without a valid parameter ..." After hours of research, my conclusion is that the firewall treat "SOAPAction" as unknow header and blocked it.
1
5245
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
5907
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
4726
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 data. Besides, I've tried to play around with app.config, it didn't help at all. Any idea? Is it possible at all to send large data as an attachement (DIME) to web service from a desktop client? PS: I have WSE2 installed. --
0
1659
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 retrieve binary data (i.e. downloading files) which is sent by the service using the "SOAP with attachments" format (as per http://www.w3.org/TR/SOAP-attachments), i.e. as a MIME multipart/related message. Apparently, the.NET Webservice library does...
2
1644
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 webservice(not WSE implemented) from this secured webservice. also there is a something interesting i have noticed here, when i comment out the below line in the web.config under <soapExtensionTypesof the secured WS i can access the unsecured WS....
0
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10325
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10148
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10091
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9950
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8972
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7499
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.