Servlet e asp.net

giovedì 09 giugno 2005 - 17.44

d@dora Profilo | Senior Member

sapete se e' possibile 'consumare' un servlet con asp.net ???
Se tento di importarlo come riferimento web in .net mi risponde :
SOAP RPC Router
Sorry, I don't speak via HTTP GET- you have to use HTTP POST to talk to me.

Secondo voi posso usarlo ugualmente ??????


Ciao e grazie

Brainkiller Profilo | Guru

Ciao,
non ho mai provato ma vedo difficile che Java e .NET si parlino così semplicemente.
Non escludo però che con qualche attrezzo di terze parti sia possibile.
Ho visto un tool tempo fa che convertiva completamente tutto il codice .NET in corrispondenti classi Java e viceversa.
Quindi forse qualcosa c'è, ma come riferifmento web la vedo dura.

ciò funziona solo se esponi con il servlet un WebService che quindi è standard.

ciao
david

d@dora Profilo | Senior Member

ho trovato l'xml del servlet con i vari metodi che espone, su un sito ho trovato come importare l'xml, ma quando creo lo schema trova un 'datatable' doppio. Posto l'xml, se riuscite a darmi una mano ve ne sarei grato.

Ciao e buona domenica !!!


<wsdl:definitions xmlns:tns="urn:WebdialerSoap"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="urn:WebdialerSoap" name="urn:WebdialerSoap">
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns="urn:WebdialerSoap" targetNamespace="urn:WebdialerSoap">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<xsd:complexType name="CallResponse">
<xsd:sequence>
<xsd:element name="responseCode" type="xsd:int"/>
<xsd:element name="description" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Credential">
<xsd:sequence>
<xsd:element name="userID" nillable="true" type="xsd:string"/>
<xsd:element name="password" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="UserProfile">
<xsd:sequence>
<xsd:element name="user" nillable="true" type="xsd:string"/>
<xsd:element name="deviceName" nillable="true" type="xsd:string"/>
<xsd:element name="lineNumber" nillable="true" type="xsd:string"/>
<xsd:element name="supportEM" type="xsd:boolean"/>
<xsd:element name="locale" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="GetConfigResponse">
<xsd:sequence>
<xsd:element name="responseCode" type="xsd:int"/>
<xsd:element name="description" nillable="true" type="xsd:string"/>
<xsd:element name="deviceInfoList" nillable="true"
type="tns:ArrayOfWDDeviceInfo"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="WDDeviceInfo">
<xsd:sequence>
<xsd:element name="deviceName" nillable="true" type="xsd:string"/>
<xsd:element name="lines" nillable="true" type="tns:ArrayOfstring"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ArrayOfWDDeviceInfo">
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType"
wsdl:arrayType="tns:WDDeviceInfo[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="ArrayOfstring">
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType"
wsdl:arrayType="xsd:string[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
<wsdl:message name="makeCallSoap0In">
<wsdl:part name="cred" type="tns:Credential"/>
<wsdl:part name="dest" type="xsd:string"/>
<wsdl:part name="prof" type="tns:UserProfile"/>
</wsdl:message>
<wsdl:message name="makeCallSoap0Out">
<wsdl:part name="Result" type="tns:CallResponse"/>
</wsdl:message>
<wsdl:message name="endCallSoap1In">
<wsdl:part name="cred" type="tns:Credential"/>
<wsdl:part name="prof" type="tns:UserProfile"/>
</wsdl:message>
<wsdl:message name="endCallSoap1Out">
<wsdl:part name="Result" type="tns:CallResponse"/>
</wsdl:message>
<wsdl:message name="getProfileSoap2In">
<wsdl:part name="cred" type="tns:Credential"/>
<wsdl:part name="userid" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="getProfileSoap2Out">
<wsdl:part name="Result" type="tns:GetConfigResponse"/>
</wsdl:message>
<wsdl:message name="isClusterUser3In">
<wsdl:part name="userid" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="isClusterUser2Out">
<wsdl:part name="Result" type="xsd:boolean"/>
</wsdl:message>
<portType name="WebdialerSoapService">
<wsdl:operation name="makeCallSoap">
<wsdl:input message="tns

d@dora Profilo | Senior Member

l'xml e' incompleto: ci riprovo !!!!


<wsdl:definitions xmlns:tns="urn:WebdialerSoap"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="urn:WebdialerSoap" name="urn:WebdialerSoap">
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns="urn:WebdialerSoap" targetNamespace="urn:WebdialerSoap">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<xsd:complexType name="CallResponse">
<xsd:sequence>
<xsd:element name="responseCode" type="xsd:int"/>
<xsd:element name="description" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Credential">
<xsd:sequence>
<xsd:element name="userID" nillable="true" type="xsd:string"/>
<xsd:element name="password" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="UserProfile">
<xsd:sequence>
<xsd:element name="user" nillable="true" type="xsd:string"/>
<xsd:element name="deviceName" nillable="true" type="xsd:string"/>
<xsd:element name="lineNumber" nillable="true" type="xsd:string"/>
<xsd:element name="supportEM" type="xsd:boolean"/>
<xsd:element name="locale" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="GetConfigResponse">
<xsd:sequence>
<xsd:element name="responseCode" type="xsd:int"/>
<xsd:element name="description" nillable="true" type="xsd:string"/>
<xsd:element name="deviceInfoList" nillable="true"
type="tns:ArrayOfWDDeviceInfo"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="WDDeviceInfo">
<xsd:sequence>
<xsd:element name="deviceName" nillable="true" type="xsd:string"/>
<xsd:element name="lines" nillable="true" type="tns:ArrayOfstring"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ArrayOfWDDeviceInfo">
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType"
wsdl:arrayType="tns:WDDeviceInfo[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="ArrayOfstring">
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType"
wsdl:arrayType="xsd:string[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
<wsdl:message name="makeCallSoap0In">
<wsdl:part name="cred" type="tns:Credential"/>
<wsdl:part name="dest" type="xsd:string"/>
<wsdl:part name="prof" type="tns:UserProfile"/>
</wsdl:message>
<wsdl:message name="makeCallSoap0Out">
<wsdl:part name="Result" type="tns:CallResponse"/>
</wsdl:message>
<wsdl:message name="endCallSoap1In">
<wsdl:part name="cred" type="tns:Credential"/>
<wsdl:part name="prof" type="tns:UserProfile"/>
</wsdl:message>
<wsdl:message name="endCallSoap1Out">
<wsdl:part name="Result" type="tns:CallResponse"/>
</wsdl:message>
<wsdl:message name="getProfileSoap2In">
<wsdl:part name="cred" type="tns:Credential"/>
<wsdl:part name="userid" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="getProfileSoap2Out">
<wsdl:part name="Result" type="tns:GetConfigResponse"/>
</wsdl:message>
<wsdl:message name="isClusterUser3In">
<wsdl:part name="userid" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="isClusterUser2Out">
<wsdl:part name="Result" type="xsd:boolean"/>
</wsdl:message>
<portType name="WebdialerSoapService">
<wsdl:operation name="makeCallSoap">
<wsdl:input message="tns:makeCallSoap0In"/>
<wsdl:output message="tns:makeCallSoap0Out"/>
</wsdl:operation>
<wsdl:operation name="endCallSoap">
<wsdl:input message="tns:endCallSoap1In"/>
<wsdl:output message="tns:endCallSoap1Out"

d@dora Profilo | Senior Member

ho provato ad allegarlo !!

Ciao
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?

Dopo esserti registrato potrai chiedere
aiuto sul nostro Forum oppure aiutare gli altri

Consulta le Stanze disponibili.

Registrati ora !
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5