|
Can you suggest a unique layout in creating a website design?
|
|
|
|
|
|
I am not able to invoke the Web service Method using WSDL web reffernce.
Step i Follow to invoke the webservice method
1. Add Web refernce of WSDL file. (It generates the refernce method )
2. create instance of service.
3. assign parameter to service method.
I am not able to invoke the service.
Sample c# code
CM_PORTG3_Ref.CM_PORTG3 _CM_PORTG3 = new CM_PORTG3_Ref.CM_PORTG3();
_CM_PORTG3.startdate = "1-Aug-2015";
_CM_PORTG3.enddate = "31-Aug-2015";
_CM_PORTG3.aid = "Agent1";
CM_PORTG3_Ref.CM_PORTG3Service _CM_PORTG3Service = new CM_PORTG3_Ref.CM_PORTG3Service();
////Smaple WSDl file format
<?xml version="1.0"?>
<!-- root element wsdl:definitions defines set of related services -->
<wsdl:definitions name="CM_PORTG3"
targetNamespace="http://ouaf.oracle.com/spl/XAIXapp/xaiserver/CM_PORTG3"
xmlns:xai="http://ouaf.oracle.com/spl/XAIXapp/xaiserver/CM_PORTG3"
xmlns:xaixsd="http://ouaf.oracle.com/spl/XAIXapp/xaiserver/CM_PORTG3"
xmlns:schemans1="http://oracle.com/CM_PORTG3.xsd"
xmlns:schemans2="http://oracle.com/CM_PORTG3.xsd"
xmlns:ouaf="urn:oracle:ouaf"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<!-- wsdl:types encapsulates schema definitions of communication types;
here using xsd -->
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ouaf="urn:oracle:ouaf" targetNamespace="urn:oracle:ouaf" elementFormDefault="unqualified">
<xsd:element name="Fault">
<xsd:complexType>
<xsd:all>
<xsd:element name="ResponseStatus" type="xsd:string"/>
<xsd:element name="ResponseCode" type="xsd:int"/>
<xsd:element name="ResponseText" type="xsd:string"/>
<xsd:element name="ResponseData" minOccurs="0">
<xsd:complexType>
<xsd:attribute name="parm1" type="xsd:string"/>
<xsd:attribute name="parm2" type="xsd:string"/>
<xsd:attribute name="parm3" type="xsd:string"/>
<xsd:attribute name="parm4" type="xsd:string"/>
<xsd:attribute name="parm5" type="xsd:string"/>
<xsd:attribute name="parm6" type="xsd:string"/>
<xsd:attribute name="parm7" type="xsd:string"/>
<xsd:attribute name="parm8" type="xsd:string"/>
<xsd:attribute name="parm9" type="xsd:string"/>
<xsd:attribute name="text" type="xsd:string"/>
<xsd:attribute name="category" type="xsd:string"/>
<xsd:attribute name="numParm" type="xsd:int"/>
<xsd:attribute name="number" type="xsd:int"/>
</xsd:complexType>
</xsd:element>
</xsd:all>
</xsd:complexType>
</xsd:element>
<xsd:simpleType name="dateTime">
<xsd:restriction base="xsd:token">
<xsd:pattern value="[0-9]{4}-[0-1][0-9]-[0-3][0-9]-[0-2][0-9]:[0-6][0-9]:[0-6][0-9]"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="date">
<xsd:restriction base="xsd:token">
<xsd:pattern value="[0-9]{4}-[0-1][0-9]-[0-3][0-9]"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="time">
<xsd:restriction base="xsd:token">
<xsd:pattern value="[0-2][0-9]:[0-6][0-9]:[0-6][0-9]"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="money">
<xsd:restriction base="xsd:decimal"/>
</xsd:simpleType>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ouaf="urn:oracle:ouaf" targetNamespace="http://oracle.com/CM_PORTG3.xsd" elementFormDefault="qualified">
<xsd:import namespace="urn:oracle:ouaf"/>
<xsd:element name="CM_PORTG3">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="zone" type="xsd:string" minOccurs="0" default="CM_PORTG3"/>
<xsd:element name="startdate" type="xsd:string" minOccurs="0"/>
<xsd:element name="enddate" type="xsd:string" minOccurs="0"/>
<xsd:element name="aid" type="xsd:string" minOccurs="0"/>
<xsd:element name="rowCount" type="xsd:decimal" minOccurs="0"/>
<xsd:element name="results" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="total1" type="xsd:string" minOccurs="0"/>
<xsd:element name="casecd" type="xsd:string" minOccurs="0"/>
<xsd:element name="aid" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="faultStyle" type="xsd:string" fixed="wsdl" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<!-- wsdl:message elements describe potential transactions -->
<!-- request CM_PORTG3Request is of type CM_PORTG3 -->
<wsdl:message name="CM_PORTG3Request">
<wsdl:part name="body" element="schemans1:CM_PORTG3"/>
</wsdl:message>
<!-- response CM_PORTG3Response is of type CM_PORTG3Response -->
<wsdl:message name="CM_PORTG3Response">
<wsdl:part name="body" element="schemans2:CM_PORTG3"/>
</wsdl:message>
<!-- fault CM_PORTG3Fault is of type CM_PORTG3Fault -->
<wsdl:message name="CM_PORTG3Fault">
<wsdl:part name="fault" element="ouaf:Fault"/>
</wsdl:message>
<!-- wsdl:portType describes messages in an operation -->
<wsdl:portType name="CM_PORTG3PortType">
<!-- the value of wsdl:operation eludes me -->
<wsdl:operation name="CM_PORTG3">
<wsdl:input message="xai:CM_PORTG3Request"/>
<wsdl:output message="xai:CM_PORTG3Response"/>
<wsdl:fault name="fault" message="xai:CM_PORTG3Fault"/>
</wsdl:operation>
</wsdl:portType>
<!-- wsdl:binding states a serialization protocol for this service -->
<wsdl:binding name="CM_PORTG3SoapBinding"
type="xai:CM_PORTG3PortType">
<!-- leverage off soap:binding document style @@@(no wsdl:foo pointing at
the soap binding) -->
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<!-- semi-opaque container of network transport details classed by
soap:binding above @@@ -->
<wsdl:operation name="CM_PORTG3">
<!-- again bind to SOAP? @@@ -->
<soap:operation soapAction="http://ouaf.oracle.com/spl/XAIXapp/xaiserver/CM_PORTG3"/>
<!-- furthur specify that the messages in the wsdl:operation
"CM_PORTG3" use SOAP? @@@ -->
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="fault">
<soap:fault name="fault" use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<!-- wsdl:service names a new service "CM_PORTG3Service" -->
<wsdl:service name="CM_PORTG3Service">
<wsdl:documentation>CM_PORTG3 version 2: Case Count against status-User ID for Genesys</wsdl:documentation>
<!-- connect it to the binding "CM_PORTG3SoapBinding" above -->
<wsdl:port name="CM_PORTG3Port"
binding="xai:CM_PORTG3SoapBinding">
<!-- give the binding a network address -->
<soap:address location="http://192.168.1.50:4500/spl/XAIApp/xaiserver/CM_PORTG3"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
|
|
|
|
|
Hi,
The soap request is sent using
set objReturn = Server.CreateObject("Msxml2.DOMDocument")
set objHTTP = server.CreateObject("Msxml2.ServerXMLHTTP")
objHTTP.setTimeouts lResolve, lConnect, lSend, lReceive
objHTTP.open "POST", strURL, False
on error resume next
objHTTP.setRequestHeader "Content-Type", "text/xml; charset=UTF-8"
objHTTP.setRequestHeader "Content-Disposition", "attachment;filename=""PDFTEST.pdf"""
objHTTP.send strXML
The response I get is per below in binary
------=_Part_97_1242713853.1455190897041
Content-Type: text/xml; charset=utf-8
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body>
****XML related document****
</SOAP-ENV:Body></SOAP-ENV:Envelope>
------=_Part_97_1242713853.1455190897041
Content-Type: application/pdf
****PDF related document****
I could output into text using below function
Binary to String function
Function BinaryToString(Binary)
Dim I, S
For I = 1 To LenB(Binary)
S = S & Chr(AscB(MidB(Binary, I, 1)))
Next
BinaryToString = S
End Function
The request
Attachment is read like below:
'--- attachments ---'
'Create Datastream object to save the file
set DataStream = CreateObject("ADODB.Stream")
'Open Datastream
DataStream.Open
'Set type to binary
DataStream.Type = 1
'Create bianry datastream of the file
DataStream.Write objHTTP.ResponseBody 'strReturnfile
DataStream.Position = 0
'Set the File System Object, so we can check to see if it already exists.
set FSO = Createobject("Scripting.FileSystemObject")
'If the file already exists, delete it
if FSO.FileExists(SaveAsFile) then
Fso.DeleteFile SaveAsFile
End If
set FSO = Nothing
'Write the file to the location on the server
DataStream.SaveToFile SaveAsFile
'Close Datastream
DataStream.Close
'Delete Datastream object
set DataStream = Nothing
'--- attachments end---'
Now my problem is I need to just read XML using loadXML()
Can anyone please help as I have spent few days and really lost.
Thanks
|
|
|
|
|
|
I had to save the stream to file, do some string manipulation and just resave the file with xml only. it worked!.
|
|
|
|
|
Hi,:
I am trying to send email from phpmailer. I am doing this for many users from different accounts and email address but this is the only time I get above message.
I tried this article[^] with no luck.
This is the complete log:
string(18) "jrahma@hotmail.com" SMTP -> FROM SERVER:220 smtp.gmail.com ESMTP b201sm3005711qhb.48 - gsmtp
CLIENT -> SMTP: EHLO careers.meskholdings.com
SMTP -> FROM SERVER: 250-smtp.gmail.com at your service, [173.236.137.128]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
CLIENT -> SMTP: STARTTLS
SMTP -> FROM SERVER:220 2.0.0 Ready to start TLS
CLIENT -> SMTP: EHLO careers.meskholdings.com
SMTP -> FROM SERVER: 250-smtp.gmail.com at your service, [173.236.137.128]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
CLIENT -> SMTP: AUTH LOGIN
CLIENT -> SMTP: bm9yZXBseUBtZXNraG9sZGluZ3MuY29t
CLIENT -> SMTP: TkBSZXAxeUBNZQ==
SMTP -> ERROR: Password not accepted from server: 535-5.7.8 Username and Password not accepted. Learn more at535 5.7.8 <a href="https://support.google.com/mail/answer/14257">https://support.google.com/mail/answer/14257</a> b201sm3005711qhb.48 - gsmtp
CLIENT -> SMTP: quit
SMTP -> FROM SERVER:221 2.0.0 closing connection b201sm3005711qhb.48 - gsmtp
SMTP Connect() failed.
Mailer Error: SMTP Connect() failed.
Kindly help..
Thanks,
Jassim[^]
Technology News @ www.JassimRahma.com
|
|
|
|
|
I hope that's not your real username and password that you've just posted to a public forum!
(The username starts with noreply@ , and the password contains two @ characters.)
If it is, then you should change your password ASAP.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Do you actually have a valid gmail account to use their SMTP service?
|
|
|
|
|
Message Removed
modified 22-Feb-16 13:55pm.
|
|
|
|
|
how to show datetime according to the client zone?
|
|
|
|
|
Use a method that shows local time.
|
|
|
|
|
Start here[^].
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
i am making a website but how to upload my website on the internet
|
|
|
|
|
I'd recommend the FTP-protocol
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Go to register yor domain on any type of domain provider
|
|
|
|
|
Hi, I am Vikas I need your help regarding permalink of url. I have my own website and i have problem of permalink which i want to solve so tell me how i can sort out this issue i want to show my url SEO friendly so guide me to fix this issue.
|
|
|
|
|
If you want us to help you, you need to tell us what the problem is!
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
The answer depends of many, many things, none of which you have mentioned. If every website functioned exactly the same then someone would have a "one size fits all" answer, but web sites don't work like that so without knowing the details of your specific implementation it's impossible to help.
|
|
|
|
|
Greetings,
I am working on a website back end and I am using Bootstrap and jQuery to handle the pages layout and the user interaction. However, I need to make some read/writing at the server side (i.e., saving pictures that will be displayed on the front end and updating data within the database) my question is do I have to implement a Web API to handle such operation reading/writing to the server or there is a way for doing that through using jQuery or Javascript only?!
|
|
|
|
|
javascript runs on the client so it's not possible to use it to store files etc on the server.
|
|
|
|
|
I mean is there a way that enable javascript or jQuery to send something like a request to a specific server to store/retrieve data or I must do this through a Web API. Sorry I am new to web development
|
|
|
|
|
Web API is just a generic term for something on the server that listens to requests, so if there is an API that can accept your data and do something with it then you can use jQuery to send data to that API. The only problem is if it is files you are sending as javascript can't read the local file system. For that you'll need to use html file api if the browser supports it.
|
|
|
|
|
I am already using HTML file api to read files from local system and those file(s) are simply photo(s) which the client will choose to use it to be displayed on the front-end banners(s). Now I need to send those photo(s) I've read to the server to be stored within a specific folder there and I do not know what I have to do for that even if I have a Web API (ASP.NET Web API) that accepts data sent to it then doing the storing functionality how can I send the data to those method(s) within the Web API I mean the jQuery get, post, and getJson methods need a URL for the Web API so do I have to write the IP address of the server (which I do not know in advance) in this URL or I can use something like this ./myapi/mycontroller to call the methods within my Web API?!!!
|
|
|
|
|
Hi,
I would like to ask about your opinion please..
If you'll develop a PHP website and need a client-side prpgramming for it, will you choose AngularJS or JQuery?
Thanks,
Jassim[^]
Technology News @ www.JassimRahma.com
|
|
|
|